1. 02 Mar, 2017 5 commits
  2. 01 Mar, 2017 1 commit
  3. 28 Feb, 2017 4 commits
  4. 24 Feb, 2017 3 commits
  5. 22 Feb, 2017 2 commits
  6. 20 Feb, 2017 2 commits
    • Nikolai Kosjar's avatar
      QbsProjectManager: Set proper Qt version for C++ Code Model · 6ba90cd0
      Nikolai Kosjar authored
      
      
      Change-Id: I04b5524e971e5617a9bae88c1fcab087d62d7a73
      Reviewed-by: Christian Kandeler's avatarChristian Kandeler <christian.kandeler@qt.io>
      6ba90cd0
    • Nikolai Kosjar's avatar
      CppTools/ProjectManagers: Reduce ui blocking when loading projects · 8c90998f
      Nikolai Kosjar authored
      
      
      ${AnyProject}::updateCppCodeModel() did two potentially not that cheap
      operations in the ui thread:
       (1) Querying the MimeDatabase for the mime type for the source files of
           the project. In 99.9% of the cases no files need to be read for
           this as the file extension will resolve the type. The expensiveness
           comes from the sheer number of files that can occur.
       (2) Calling compilers with the "(sub)project's compiler command line"
           to determine the macros. While the caches avoid redundant calls,
           the number of the unique compiler calls makes this still a
           ui-freezing experience.
      
      These two operations are moved into a worker thread. For this, the
      expensive compiler calls are encapsulated in thread safe lambdas
      ("runners") in order to keep the "mutexed" data minimal. The original
      API calls of the toolchains are implemented in terms of the runners.
      
      While adapting the project managers, remove also the calls to
      setProjectLanguage(). These are redundant because all of the project
      managers already set a proper value in the constructor. Also, currently
      there is no need (client) to report back detection of C sources in
      project parts. This also keeps CppProjectUpdater simple.
      
      There is still room for improvement:
       * Run the compiler calls in parallel instead of sequence.
       * Ensure that the mime type for a file is determined exactly once.
      
      Change-Id: I2efc4e132ee88e3c8f264012ec8fafe3d86c404f
      Reviewed-by: Tobias Hunger's avatarTobias Hunger <tobias.hunger@qt.io>
      8c90998f
  7. 16 Feb, 2017 1 commit
  8. 15 Feb, 2017 2 commits
  9. 09 Feb, 2017 2 commits
  10. 02 Feb, 2017 1 commit
  11. 30 Jan, 2017 4 commits
  12. 27 Jan, 2017 2 commits
  13. 26 Jan, 2017 1 commit
  14. 24 Jan, 2017 1 commit
  15. 23 Jan, 2017 1 commit
  16. 20 Jan, 2017 1 commit
  17. 19 Jan, 2017 1 commit
  18. 18 Jan, 2017 1 commit
  19. 11 Jan, 2017 1 commit
  20. 20 Dec, 2016 1 commit
  21. 12 Dec, 2016 1 commit
    • Nikolai Kosjar's avatar
      CppTools: Classify ambiguous headers depending on other files · 3a369552
      Nikolai Kosjar authored
      
      
      This applies for all project managers, except qmake. The qmake project
      manager will make use of this in follow up changes.
      
      Before, "foo.h" was always recognized as a CXXHeader. Now, it depends on
      the other files. E.g. in a file list {"foo.h", "foo.c"} foo.h is now a
      CHeader. In {"foo.h", "foo.c", "bar.cpp"} the file "foo.h" is ambiguous
      and we will create two project parts, one where it is a CHeader, the
      other where it is a CXXHeader.
      
      Change-Id: I50505163368742584b1380c284d42cbe07cb4fc9
      Reviewed-by: David Schulz's avatarDavid Schulz <david.schulz@qt.io>
      3a369552
  22. 07 Dec, 2016 1 commit
  23. 06 Dec, 2016 1 commit