Skip to content
Snippets Groups Projects
  1. Oct 09, 2014
  2. Oct 06, 2014
    • Nikolai Kosjar's avatar
      CppTools: Handle reset case for setIndexingSupport · 983c87dd
      Nikolai Kosjar authored
      
      For the time being, this function actually sets an additional
      CppIndexSupport to be executed. Handle the case that a client tries to
      restore the previous CppIndexingSupport (see SymbolSearcherTestCase).
      
      This fixes GenericProjectManager::test_simple in interaction with
      CppTools::test_builtinsymbolsearcher. Now first running the CppTools
      tests and then the GenericProjectManager tests work fine.
      
      Change-Id: Ibe7248ec8651d4fdc312f10cdcc9c56d6dd086d9
      Reviewed-by: default avatarChristian Stenger <christian.stenger@digia.com>
      983c87dd
  3. Oct 02, 2014
  4. Sep 25, 2014
  5. Sep 22, 2014
  6. Sep 19, 2014
  7. Sep 16, 2014
  8. Sep 08, 2014
    • 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>
      c023a1ca
  9. Sep 05, 2014
  10. Sep 04, 2014
  11. Aug 29, 2014
  12. Aug 25, 2014
    • 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
        QTextDocument::contentsChanged().
      
      * 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: default avatarOrgad Shaneh <orgads@gmail.com>
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      89bd4ee3
  13. Aug 20, 2014
  14. Aug 07, 2014
    • 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
            messages.
      
      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>
      0f3032f8
  15. Jul 04, 2014
  16. Jun 25, 2014
  17. Jun 18, 2014
  18. Jun 12, 2014
  19. Jun 10, 2014
  20. Jun 04, 2014
  21. May 23, 2014
  22. May 21, 2014
  23. Mar 26, 2014
  24. Mar 12, 2014
  25. Mar 05, 2014
  26. Feb 27, 2014
  27. Feb 19, 2014
    • 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>
      d24cb60d
  28. Jan 08, 2014
  29. Jan 07, 2014
  30. Dec 16, 2013
  31. Dec 10, 2013
  32. Nov 25, 2013
  33. Nov 14, 2013
Loading