1. 23 Oct, 2014 1 commit
  2. 15 Oct, 2014 1 commit
  3. 25 Sep, 2014 2 commits
  4. 29 Aug, 2014 3 commits
  5. 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
        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: Orgad Shaneh's avatarOrgad Shaneh <orgads@gmail.com>
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      89bd4ee3
  6. 20 Aug, 2014 4 commits
  7. 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
            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
  8. 04 Jul, 2014 1 commit
  9. 27 Feb, 2014 1 commit
  10. 08 Jan, 2014 1 commit
  11. 12 Nov, 2013 1 commit
    • Erik Verbruggen's avatar
      C++: Release more documents. · 566be099
      Erik Verbruggen authored
      - fix memory leak in find-usages
      - do not retain snapshot in search history
      - when an editor is invisible for more than 2 minutes, release the
        backing snapshot
      
      Retaining snapshots will retain their documents, and if done for too
      long, the memory consumption might grow. This is especially the case
      when switching to a different kit (Qt version): in that case, the new
      versions of headers will be indexed, while the old ones stay around.
      
      Task-number: QTCREATORBUG-5583
      Task-number: QTCREATORBUG-7645
      Task-number: QTCREATORBUG-9842
      
      Change-Id: I045eda1565e0a3fa702baeffaab9c12662f90289
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
      566be099
  12. 09 Oct, 2013 1 commit
  13. 01 Oct, 2013 4 commits
  14. 10 Sep, 2013 1 commit
    • Erik Verbruggen's avatar
      C++: unify highlighting/code-completion support "factories". · 3a5d3a2f
      Erik Verbruggen authored
      Both semantic highlighting and code-completion go hand-in-hand, so now
      the ModelManagerSupport class acts as a "factory" for the model manager.
      Depending on the mime-type of the document in the editor, the model
      manager will return the appropriate highlighter or code-completion
      engine. If none is registered, the built-in fall-back is used.
      
      Change-Id: I3e5dbb0e3b58e077dd5eda9aecb2ce5d448ac0b8
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
      3a5d3a2f
  15. 19 Aug, 2013 1 commit
  16. 26 Apr, 2013 1 commit
  17. 18 Apr, 2013 1 commit
  18. 03 Apr, 2013 1 commit
  19. 29 Jan, 2013 1 commit
  20. 05 Oct, 2012 1 commit
  21. 19 Jul, 2012 1 commit
  22. 15 Mar, 2012 1 commit
  23. 20 Feb, 2012 1 commit
  24. 15 Feb, 2012 1 commit
  25. 08 Feb, 2012 1 commit
  26. 26 Jan, 2012 1 commit
  27. 03 Nov, 2011 1 commit
  28. 14 Jul, 2011 1 commit
  29. 06 May, 2011 1 commit
  30. 13 Apr, 2011 1 commit
  31. 12 Jan, 2011 1 commit