1. 04 Jul, 2016 1 commit
    • Nikolai Kosjar's avatar
      Clang: Pass on file paths with native separators · 36e7f454
      Nikolai Kosjar authored
      libclang 3.8 seems to be sensitive to file paths separators [1]. On Windows,
      this led to not updated document annotations and/or crashes after reparsing.
      
      When passing file paths to libclang, convert to native separators.
      When getting file paths from libclang, convert back.
      
      This handles:
       * main file path
       * file paths of the unsaved files
       * -I<DIR> arguments, the resource path (for builtins) and the paths to the
         wrapped qt headers
       * included header files from libclang
       * source locations from libclang
      
      Also, minimize the conversion in SourceLocation to a minimum by making
      filePath() lazy.
      
      [1] https://llvm.org/bugs/show_bug.cgi?id=28381
      
      Change-Id: If5866f34a6fdc6b34b16c022d3988e8e6eae2a0a
      Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
      36e7f454
  2. 28 Jun, 2016 1 commit
    • Nikolai Kosjar's avatar
      CppTools/Clang: Announce only removed project parts · d63e27d8
      Nikolai Kosjar authored
      ...and not all projects parts of a project if it is closed.
      
      Re-produce with:
        open a project A with subdirs (e.g. qtcreator.pro)
        open a subdir project from project A (e.g. cppeditor.pro)
        close project A
        --> The project part representing the subdir is announced as removed
            although it is still open.
      
      The clang code model was the only affected user - affected translation
      units were not parsed/updated anymore
      ("ERROR: ProjectPartDoesNotExistMessage").
      
      Change-Id: Ia79341ce201e3b4aefff9f597920dbc6f7d67634
      Reviewed-by: default avatarDavid Schulz <david.schulz@theqtcompany.com>
      d63e27d8
  3. 22 Jun, 2016 2 commits
  4. 21 Jun, 2016 1 commit
  5. 20 Jun, 2016 1 commit
  6. 15 Jun, 2016 1 commit
    • Christian Kandeler's avatar
      qbs build: Final steps to support building plugins "out of source". · e1e20359
      Christian Kandeler authored
      - Use the entire Export block when creating a module, not just the
        Depends items. Adapt references to the product source directory
        and the "share" directory so that they point to the respective
        locations in the install tree.
      - Install dev headers for some more plugins.
      - Bug fixes & polishing.
      
      Create a "dev installation" like this:
      $ qbs qtc.make_dev_package:true qbs.installRoot:<install root>
      
      Then build your plugin against it like this:
      $ qbs qtc.make_dev_package:true qbs.installRoot:<install root>
      project.qbsSearchPaths:<install root>/qbs-resources
      (Using qbs from 1.5 branch; 1.5.1 requires a trivial wrapper project.)
      
      That's all. Successfully tested with all commercial plugins on Linux.
      
      Change-Id: Ie39c4717dafcd431c533421a15f2f898783d8521
      Reviewed-by: Jake Petroules's avatarJake Petroules <jake.petroules@qt.io>
      Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
      e1e20359
  7. 08 Jun, 2016 1 commit
  8. 30 May, 2016 1 commit
  9. 25 May, 2016 1 commit
  10. 24 May, 2016 1 commit
  11. 23 May, 2016 1 commit
  12. 03 May, 2016 1 commit
    • Nikolai Kosjar's avatar
      QbsProjectManager: Fix SOFT ASSERT: "future.isFinished()" · 1cbb4cc9
      Nikolai Kosjar authored
      ...in file qbsproject.cpp, line 940.
      
      The assert can be triggered with e.g.:
       1. Load a bigger qbs project, e.g. qtcreator.qbs.
       2. Trigger project build as soon as possible.
       3. Cancel the "Parsing C/C++" operation.
       4. Wait until the build finished and the assert occurs.
      
      This happens because CppModelManager::updateProjectInfo() since
      
        commit  536ccc8a
        CppTools: Fix incompletely indexed project
      
      will check whether the previous indexer run was canceled or not. If it
      was canceled, it will trigger a full-reindexing of the project.
      
      Updating the compiler call data is a special case and it should never
      trigger an indexing operation, so introduce a dedicated update function
      for this case.
      
      Change-Id: I456945ccf2bf697aaeada572ed87f3acb21a5eaf
      Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
      Reviewed-by: Eike Ziller's avatarEike Ziller <eike.ziller@qt.io>
      1cbb4cc9
  13. 28 Apr, 2016 1 commit
  14. 27 Apr, 2016 1 commit
  15. 26 Apr, 2016 1 commit
  16. 25 Apr, 2016 1 commit
    • Nikolai Kosjar's avatar
      CppTools: Fix incompletely indexed project · 536ccc8a
      Nikolai Kosjar authored
      Use case to reproduce:
       1. Open some bigger project, e.g. qtcreator.pro
       2. As soon as "Parsing C/C++ files" is reported, add a character to
          qmake's additional arguments in project mode (indexing should not be
          finished at this point).
       3. The indexing gets canceled.
       ==> ...but reindexing is not triggered.
      
      Fix by checking whether the future was canceled.
      
      Task-number: QTCREATORBUG-16134
      Change-Id: I520c6a64a6adc1cb04cafb5e0aa56c8bf41d7b14
      Reviewed-by: Christian Stenger's avatarChristian Stenger <christian.stenger@qt.io>
      536ccc8a
  17. 22 Apr, 2016 1 commit
  18. 21 Apr, 2016 1 commit
  19. 18 Apr, 2016 1 commit
  20. 15 Apr, 2016 1 commit
  21. 13 Apr, 2016 1 commit
  22. 12 Apr, 2016 3 commits
  23. 11 Apr, 2016 1 commit
  24. 06 Apr, 2016 1 commit
  25. 31 Mar, 2016 8 commits
  26. 30 Mar, 2016 1 commit
  27. 24 Mar, 2016 1 commit
  28. 15 Mar, 2016 3 commits