1. 04 Sep, 2017 1 commit
    • Nikolai Kosjar's avatar
      Add experimental .clang-format · 54a43de6
      Nikolai Kosjar authored
      This adds a configuration file for clang-format [1] and a test file to
      demonstrate benefits and current problems with respect to Qt Creator's
      coding rules [2].
      
      This is based on clang-format from the llvm/clang 5.0 branch, which is
      about to be released soon in the next days/weeks (already behind
      schedule).
      
      Using clang-format for Qt Creator brings these advantages:
       * Enforce a bunch of coding rules by a simple tool/shortcut invocation.
       * Spend less review cycles for authors and reviewers regarding
         formatting. This helps especially for/with first-time contributors.
       * clang-format sorts includes and using declarations.
       * clang-format adds/updates namespace end comments, e.g.: } //
         namespace Foo
      
      See dist/clangformat/README.md for setup instructions und currently
      known issues.
      
      [1] https://clang.llvm.org/docs/ClangFormat.html
      [2] https://doc-snapshots.qt.io/qtcreator-extending/coding-style.html
      
      Task-number: QTCREATORBUG-17643
      Change-Id: I87bdd66b8e492e99a360022962b0053f02a33e57
      Reviewed-by: Alessandro Portale's avatarAlessandro Portale <alessandro.portale@qt.io>
      Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
      54a43de6
  2. 07 Aug, 2017 1 commit
  3. 25 Jul, 2017 1 commit
  4. 18 Apr, 2017 1 commit
  5. 19 Sep, 2016 1 commit
  6. 17 Sep, 2016 1 commit
  7. 14 Sep, 2016 1 commit
  8. 10 Aug, 2016 1 commit
  9. 19 Apr, 2016 1 commit
  10. 04 Apr, 2016 1 commit
  11. 28 Jan, 2016 1 commit
  12. 12 Oct, 2015 1 commit
  13. 02 Sep, 2015 1 commit
  14. 29 Jun, 2015 1 commit
  15. 16 Jun, 2015 1 commit
  16. 03 Jun, 2015 1 commit
  17. 20 May, 2015 1 commit
  18. 29 Jan, 2015 1 commit
    • Nikolai Kosjar's avatar
      C++: Clean up dev tools · 739cc9f0
      Nikolai Kosjar authored
      * Move cplusplus-frontend to src/tools
      * Make them depend on libs/cplusplus instead of building that lib again
      * Put the binaries into bin of the qtcreator build directory
      * Unify *.pro files
      * Build them all if BUILD_CPLUSPLUS_TOOLS is set
      
      Change-Id: I8f9cd731625cbf9f41d5f6464c6cd946ffd6e141
      Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
      739cc9f0
  19. 06 Jan, 2015 1 commit
  20. 16 Oct, 2014 1 commit
    • Nikolai Kosjar's avatar
      Import Clang Static Analyzer plugin · b9f9eb7a
      Nikolai Kosjar authored
      This plugin adds "Clang Static Analyzer" to the Analyze mode, which
      processes all implementation/source project files of the current
      project. For this, it will call the clang executable for each file.
      
      The found diagnostics will be displayed in a view similar to the one
      used in "Valgrind Memory Analyzer".
      
      The user can specify the clang executable to use and the number of
      concurrent processes to launch in Menu: Tools > Options > Analyzer >
      Clang Static Analyzer.
      
      Main TODOs:
      
       * Fiddle around the appropriate command line options, currently only
         defines and include paths are passed on.
      
       * Tests on Windows / OS X.
      
       * Remove dependency to clangcodemodel by moving the functions that
         create command line arguments to CppTools. Mostly they are not even
         specific to clang (but would also work with gcc).
      
       * Maybe limit to a range of tested clang versions.
      
       * How to deal with directory containing all the log files after the
         user starts a new run or Creator is shut down? (delete it? leave it
         there? make it configurable?).
      
       * Find out how to properly integrate the tests.
      
      Imaginable future additions:
      
       * Adding a button to load result/log files from a directory, e.g. if
         the user used the 'scan-build' approach.
      
       * Adding a button with a filter menu in order to display only
         diagnostics from certain categories, similar to "Valgrind Memory
         Analyzer".
      
      Change-Id: I6aeb5dfdbdfa239a06c03dd8759a983df71b77ea
      Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
      b9f9eb7a
  21. 02 Sep, 2014 1 commit
  22. 28 Jul, 2014 1 commit
  23. 07 Jul, 2014 1 commit
  24. 26 Jun, 2014 1 commit
  25. 29 May, 2014 1 commit
  26. 27 Feb, 2014 1 commit
  27. 17 Oct, 2013 1 commit
  28. 03 Apr, 2013 1 commit
  29. 07 Mar, 2013 1 commit
  30. 05 Mar, 2013 1 commit
  31. 07 Feb, 2013 1 commit
  32. 31 Jan, 2013 1 commit
    • Orgad Shaneh's avatar
      Update and clean .gitignore · 05026c51
      Orgad Shaneh authored
      * Prepend / for directories expected to be in the root directory
      * Append / (and remove trailing *) for entries which are expected
        to be directories
      * Add some qmake-generated directories (.obj, .moc, .uic)
      * Include all exe files in a single rule
      * Add cpaster, sdktool and qtcreator_crash_handler
      * Add all tests binaries
      
      Change-Id: Ic8640cfe2222bc18a16bf18f96ba6733cf50eaa8
      Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@digia.com>
      Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
      05026c51
  33. 15 Jan, 2013 1 commit
  34. 04 Dec, 2012 1 commit
  35. 22 Nov, 2012 1 commit
    • Nikolai Kosjar's avatar
      C++: Clean up dev tools. · d0f3d7cb
      Nikolai Kosjar authored
      * Add -h and -help options describing the tools and their usage.
      
      * Make the tools compile and run on Windows (MinGW, MSVC).
      
      * Rename project dirs, executables and main source files to more
        meaningful names:
        - Use same base name for project dir, *.pro file, main source file
          and (if applicable) script file.
        - Use the prefix "cplusplus-".
        - The names are now:
            - gen-cpp-ast/generate-ast --> cplusplus-update-frontend
            - mkvisitor --> cplusplus-mkvisitor
            - cplusplus-dump/cplusplus0 --> cplusplus-ast2png
      
      * Get rid of 'c++' shell scripts.
      
      * Get rid of duplicates of 'conf.c++'. Rename to 'pp-configuration.inc'.
      
      * Introduce src/tools/cplusplus-tools-utils containing common stuff
        that is used at least in two tools. 'pp-configuration.inc' can also be
        found here.
      
      * cplusplus-update-frontend:
        - Print file paths of written files to stdout.
        - Convenience: Use default values referencing the appropriate dirs and
          files.
      
      * cplusplus-mkvisitor:
        - Take only one argument, namely the path to AST.h.
        - Convenience: Use default path to AST.h.
      
      * cplusplus-ast2png:
        - Make it run without LD_LIBRARY_PATH.
        - As the name suggests, generate image files in png format (needs
          'dot' from graphviz).
        - Convenience: Read from stdin, which useful for small snippets.
      
      Change-Id: I79c4061fce4a1571c0588dfedd50d4a70715d9df
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      d0f3d7cb
  36. 30 Oct, 2012 1 commit
  37. 24 Oct, 2012 1 commit
  38. 09 Oct, 2012 1 commit
  39. 20 Jun, 2012 1 commit
  40. 21 May, 2012 1 commit