1. 13 Jan, 2016 1 commit
  2. 16 Dec, 2015 1 commit
  3. 02 Dec, 2015 1 commit
    • Nikolai Kosjar's avatar
      Clang: Fix recovering on clangbackend crash · 475b11aa
      Nikolai Kosjar authored
      The translation unit was updated, but not re-registered.
      Handle the editor documents this way:
        1. Reset all ClangEditorDocumentProcessors (this will send an
           unregister message, but that's not problematic).
        2. For the visible editor documents, run their processors so that the
           translation units will be re-registered.
        3. For the invisible editor documents, mark them dirty. Once the user
           makes an invisible document visible again, the processor will run
           and also re-register the translation unit.
      Change-Id: I23693ac197bd34a183f3a0020eb5372268636599
      Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
  4. 01 Dec, 2015 1 commit
  5. 16 Nov, 2015 1 commit
  6. 09 Nov, 2015 1 commit
  7. 12 Oct, 2015 1 commit
  8. 31 Aug, 2015 1 commit
  9. 20 Jul, 2015 1 commit
  10. 08 Jul, 2015 1 commit
  11. 10 Jun, 2015 1 commit
    • Nikolai Kosjar's avatar
      Clang: Use completion through backend process · 23b8a3b2
      Nikolai Kosjar authored
      This makes us independent of libclang crashes for completion.
      Re-parsing for highlighting still happens in the Qt Creator process.
      Run in verbose mode:
      Run tests:
          -test "ClangCodeModel"
      Task-number: QTCREATORBUG-14108
      Task-number: QTCREATORBUG-12819
      Change-Id: Id3e95bd2afdb6508bbd1d35fddc69534a909b905
      Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
  12. 03 Jun, 2015 1 commit
  13. 05 Mar, 2015 1 commit
  14. 09 Feb, 2015 1 commit
  15. 30 Jan, 2015 1 commit
  16. 16 Jan, 2015 1 commit
  17. 14 Jan, 2015 1 commit
  18. 18 Dec, 2014 1 commit
  19. 03 Dec, 2014 1 commit
    • Nikolai Kosjar's avatar
      CppTools: Update document on activation · cb0d1369
      Nikolai Kosjar authored
      ...if the project was updated in the meanwhile.
      If a project is updated mark invisible editor documents dirty and update
      them if they get focus.
      This also fixes document highlighting when restoring a session for
      documents that the user "switched away" before the project info is
      pushed to CppModelManager.
      This completes
          CppTools: Update visible documents on project update
          commit c2eb91e0
      which only takes care of visible documents.
      Task-number: QTCREATORBUG-13270
      Change-Id: Id445e7f509deac5d03194aecc54ce4629b7926ce
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@theqtcompany.com>
  20. 15 Oct, 2014 1 commit
    • Nikolai Kosjar's avatar
      CppTools: Update visible documents on project update · c2eb91e0
      Nikolai Kosjar authored
      With asynchron project managers, creating a new project from a wizard or
      re-opening a session will first open the editor documents and then
      provide the project information later (it's the other way around with
      synchronous project managers). This sequence leave the documents with
      various error diagnostics behind. Fixed by re-triggering the re-parsing.
      This change does not fix QTCREATORBUG-11606 yet. Though it will trigger
      a reparse with the right includes, clang still reports 'file not found'.
      Will be addressed by a follow-up patch.
      Task-number: QTCREATORBUG-11606
      Change-Id: Ib5d251e05accf4268f9b36decc5224b2c75f610c
      Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
      Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
      Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
  21. 09 Oct, 2014 1 commit
  22. 02 Oct, 2014 1 commit
  23. 26 Sep, 2014 1 commit
  24. 25 Sep, 2014 1 commit
  25. 19 Sep, 2014 2 commits
  26. 08 Sep, 2014 1 commit
    • Orgad Shaneh's avatar
      CppTools: Fix compilation with recent gcc 4.9.2 · c023a1ca
      Orgad Shaneh authored
      See https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62224
      .obj/release-shared/cppcodemodelinspectordialog.o: In function `CppEditor::Internal::CppCodeModelInspectorDialog::refresh()':
      cppcodemodelinspectordialog.cpp:(.text+0x79fc): undefined reference to `CppTools::Internal::CppModelManager::ensureUpdated()'
      .obj/release-shared/cppcodemodelinspectordialog.o: In function `CppTools::Internal::CppModelManager::definedMacros()':
      cppcodemodelinspectordialog.cpp:+0x26): undefined reference to `CppTools::Internal::CppModelManager::ensureUpdated()'
      .obj/release-shared/cppcodemodelinspectordialog.o: In function `CppTools::Internal::CppModelManager::headerPaths()':
      cppcodemodelinspectordialog.cpp: +0x26): undefined reference to `CppTools::Internal::CppModelManager::ensureUpdated()'
      Change-Id: Ie0e01f7628668cbbe11b701a93caef98bb8e335f
      Reviewed-by: default avatarAdam Majer <adamm@zombino.com>
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
  27. 04 Sep, 2014 1 commit
  28. 25 Aug, 2014 1 commit
    • Nikolai Kosjar's avatar
      C++: Base parsing on editor document instead of widget · 89bd4ee3
      Nikolai Kosjar authored
      This mainly takes CppEditorSupport apart.
      * Parsing is now invoked by CPPEditorDocument itself by listening to
      * Upon construction and destruction CPPEditorDocument creates and
        deletes an EditorDocumentHandle for (un)registration in the model
        manager. This handle provides everything to generate the working copy
        and to access the editor document processor.
      * A CPPEditorDocument owns a BaseEditorDocumentProcessor instance that
        controls parsing, semantic info recalculation and the semantic
        highlighting for the document. This is more or less what is left from
        CppEditorSupport and can be considered as the backend of a
        CPPEditorDocument. CPPEditorDocument itself is quite small.
          * BuiltinEditorDocumentProcessor and ClangEditorDocumentProcessor
            derive from BaseEditorDocumentProcessor and implement the gaps.
          * Since the semantic info calculation was bound to the widget, it
            also calculated the local uses, which depend on the cursor
            position. This calculation got moved into the extracted class
            UseSeletionsUpdater in the cppeditor plugin, which is run once the
            cursor position changes or the semantic info document is updated.
          * Some more logic got extracted:
      	- SemanticInfoUpdater (logic was in CppEditorSupport)
      	- SemanticHighlighter (logic was in CppEditorSupport)
          * The *Parser and *Processor classes can be easily accessed by the
            static function get().
      * CppHighlightingSupport is gone since it turned out to be useless.
      * The editor dependency in CompletionAssistProviders is gone since we
        actually only need the file path now.
      Change-Id: I49d3a7bd138c5ed9620123e34480772535156508
      Reviewed-by: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
  29. 07 Aug, 2014 1 commit
    • Nikolai Kosjar's avatar
      CppTools: Tests: Add "Find Errors Indexing" mode · 0f3032f8
      Nikolai Kosjar authored
      Adding QTC_FIND_ERRORS_INDEXING=1 to the run environment will Creator
      force to do some "extended indexing" in order to find bugs:
         1) The project files are parsed as if they would be opened in an
            editor. That is, parsing happens as precisely as possible, based on
            the ProjectPart information.
         2) Symbols are looked up by invoking CheckSymbols, the backend of the
            semantic highlighter.
         3) A "Task List File" (*.tasks) will be written with all diagnostic
      This special indexing mode is meant for testing purposes. E.g. it can be
      run nightly on some bigger projects to find regressions.
      Note that Qt Creator will quit exactly after the first time some source
      files are indexed. E.g. that will happen if you open a file manually or
      if you open a new unconfigured project. Therefore it's required to
      configure projects as needed before invoking in this indexing mode.
      Change-Id: If25b83e67d24df9e28e107cb062f21cbf3b4c643
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
  30. 04 Jul, 2014 1 commit
  31. 18 Jun, 2014 1 commit
  32. 12 Jun, 2014 2 commits
  33. 10 Jun, 2014 2 commits
    • Nikolai Kosjar's avatar
      CppTools: Remove some duplicate code · 5f7f6f87
      Nikolai Kosjar authored
      Change-Id: I83c0bbcf221fd163cd2514a9d23983b82e1f04fd
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
    • Nikolai Kosjar's avatar
      CppTools: Unexport some internal classes. · 11845cd3
      Nikolai Kosjar authored
      Unexports CppModelManager, CppSourceProcessor and CppToolsPlugin.
      Now only some constructor signatures mention "Internal::" in the
      exported symbols:
      % nm --extern-only --demangle ./lib/qtcreator/plugins/libCppTools.so | grep "Internal::"
      CppTools::CppEditorSupport::CppEditorSupport(CppTools::Internal::CppModelManager*, TextEditor::BaseTextEditor*)
      CppTools::CppEditorSupport::CppEditorSupport(CppTools::Internal::CppModelManager*, TextEditor::BaseTextEditor*)
      Change-Id: I167c21a6dc03cf02230c95fde66cf404e40df36f
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
  34. 21 May, 2014 1 commit
  35. 26 Mar, 2014 1 commit
  36. 19 Feb, 2014 1 commit
    • Fawzi Mohamed's avatar
      qml: moving most of ModelManager logic to ModelManageInterface · d24cb60d
      Fawzi Mohamed authored
      Currently ModelManager contains lot logic, but as it sits in QmlJSTools
      it is not possible to use it in standalone tests.
      Moving most of the logic to ModelManagerInterface (and cleanup)
      to allow better testing, and refactoring.
      This introduces a dependency of the qmljs lib on the cplusplus lib
      Also a (small) part of the CppTool::ModelManagerInterface has been
      moved to CPlusPlus::CppModelManagerBase to remove the dependency on
      CppTools to gather the Qml types exposed from C++.
      Change-Id: Icad7fe96dfd0f1a2b1058d82bd98c77c40aa5e9d
      Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
  37. 08 Jan, 2014 1 commit