1. 09 Oct, 2014 1 commit
  2. 29 Aug, 2014 1 commit
  3. 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
  4. 17 Mar, 2014 1 commit
    • Nikolai Kosjar's avatar
      CppTools: Tag incomplete semantic info · 18e6be55
      Nikolai Kosjar authored
      ...in order to be able to full-rehighlight on the next turn.
      
      The following sequence was problematic:
      
      1. recalculateSemanticInfoDetached(true)
         * e.g. triggered by opening the document
      2. recalculateSemanticInfoDetached(false)
         * e.g. triggered by moving the cursor
         * cancels 1. and leads to incompletely parsed/checked document - OK
      3. startHighlighting()
         * triggered by 1.; starts highlighting on incomplete document - OK
      4. startHighlighting()
         * gets a completely parsed/checked document - OK
         * not forced, so just compare revisions; they are the same, so
           skip/return - a partly highlighted document is left behind.
      
      Task-number: QTCREATORBUG-11367
      Change-Id: Ic56e00e862ec4a1ffa197b2fc8b48be56a3562de
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      18e6be55
  5. 13 Mar, 2014 1 commit
  6. 08 Jan, 2014 1 commit
  7. 11 Sep, 2013 1 commit
  8. 26 Apr, 2013 1 commit
  9. 18 Apr, 2013 1 commit
  10. 17 Apr, 2013 1 commit
  11. 10 Apr, 2013 1 commit
  12. 03 Apr, 2013 1 commit
  13. 19 Feb, 2013 1 commit
  14. 29 Jan, 2013 1 commit
  15. 05 Oct, 2012 1 commit
  16. 29 Aug, 2012 1 commit
  17. 30 Jul, 2012 1 commit
  18. 19 Jul, 2012 1 commit
  19. 05 Jun, 2012 1 commit
    • Francois Ferrand's avatar
      CppHighlighter: highlight all functions/methods. · 809611f3
      Francois Ferrand authored
      - Highlight all function/methods (not just virtual methods).
      - Highlight as a function even if number of arguments does not match. In
        that case, add a diagnostic message to indicate there are too many/too
        few arguments.
      - Fix highlighting of parameters in function declarations.
        These used to be handled indiferently, and they could be mistaken for
        type or field references.
      - Properly highlight template method calls.
      
      Change-Id: I6e61c9ee47763db95c62314f9cc1c4d398df38b3
      Reviewed-by: default avatarLeandro Melo <leandro.melo@nokia.com>
      809611f3
  20. 13 Apr, 2012 1 commit
  21. 29 Mar, 2012 2 commits
  22. 15 Feb, 2012 1 commit
  23. 09 Feb, 2012 1 commit
  24. 08 Feb, 2012 1 commit
  25. 26 Jan, 2012 1 commit
  26. 03 Nov, 2011 1 commit
  27. 25 Aug, 2011 1 commit
  28. 24 Aug, 2011 1 commit
  29. 06 May, 2011 1 commit
  30. 13 Apr, 2011 1 commit
  31. 22 Feb, 2011 1 commit
    • hjk's avatar
      texteditor: merge ITextEditable into ITextEditor · f576ad9f
      hjk authored
      rename BastTextEditor->BaseTextEditorWidget, BaseTextEditorEditable->BaseTextEditor
      rename BaseTextEditor{,Widget} subclasses
      rename editableInterface->editorInterface
      rename createEditableInterface->createEditor
      minor cleanups after renamings
      f576ad9f
  32. 04 Feb, 2011 1 commit
  33. 12 Jan, 2011 2 commits
  34. 17 Dec, 2010 1 commit
  35. 09 Aug, 2010 1 commit
  36. 05 Aug, 2010 1 commit
  37. 03 Aug, 2010 1 commit
  38. 15 Jul, 2010 1 commit