1. 30 Mar, 2016 1 commit
  2. 19 Jan, 2016 1 commit
  3. 02 Dec, 2015 1 commit
  4. 01 Dec, 2015 1 commit
  5. 14 Oct, 2015 1 commit
    • Nikolai Kosjar's avatar
      Clang: Fix reloading documents · f18bc981
      Nikolai Kosjar authored
      Fix the following use case:
       * Open foo.h
       * Open foo.cpp
       * Change both files externally (e.g. git checkout) e.g. by adding a
         function (declaration + definition)
       * Confirm the reload dialog in Qt Creator
       * The added function in foo.cpp gets a diagnostic that it's out of line
         although foo.h is also reloaded.
      TextDocument::contentsChangedWithPosition() is also emitted during a
      reload. However, the revision of the document at that point is not yet
      updated. This led to an out-dated copy of the unsaved files in the clang
      Change-Id: I70580d32bb7a34dc43356dc05019cc18addf950e
      Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
  6. 01 Oct, 2015 1 commit
    • Nikolai Kosjar's avatar
      Clang: Unregister file with project immediately on project close · a5674be6
      Nikolai Kosjar authored
      Ensure that first the editors unregister with the removed project part,
      then unregister the project part.
      This makes testing and following the message logs easier.
      It also fixes the following race condition:
       * Unload project of opened file
       * Immediately close the editor before a new project part is calculated
       ==> The editor is closed, but the translation unit is not properly
      Change-Id: I618930d221323435ba60ac6c051380bccc9fdaf1
      Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
  7. 29 Sep, 2015 1 commit
    • Nikolai Kosjar's avatar
      Clang: Integrate clang's fixits as refactoring actions · a7928b4b
      Nikolai Kosjar authored
      They are invokable by the usual means (Alt+Enter, editor's context menu
      > Refactor) plus by the context menu of the editor's left margin for the
      related line.
      The fixit text comes directly from libclang and is thus not translated.
      We modify the text slighty by stripping the diagnostic category prefix
      ("note:", "error:", ...) and capitalizing the first letter.
      A follow-up change should properly indicate available refactorings with
      a refactoring icon in the editor's left margin.
      Task-number: QTCREATORBUG-14868
      Change-Id: I86157c9f824d2a9dedf19087476d02ad1e6cc854
      Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
  8. 28 Sep, 2015 1 commit
  9. 31 Aug, 2015 1 commit
  10. 20 Jul, 2015 1 commit
  11. 06 Jul, 2015 3 commits
  12. 01 Jul, 2015 1 commit
  13. 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>
  14. 16 Jan, 2015 1 commit
  15. 09 Oct, 2014 1 commit
  16. 25 Sep, 2014 1 commit
  17. 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>
  18. 12 Jun, 2014 1 commit
  19. 09 Jan, 2014 1 commit
  20. 20 Dec, 2013 1 commit
    • Erik Verbruggen's avatar
      Add experimental clang code-model plug-in. · 5beb74fd
      Erik Verbruggen authored
      Previously known as the wip/clang branch.
      Contributors (in alphabetical order):
      - Christian Kamm <christian.d.kamm@nokia.com>
      - Erik Verbruggen <erik.verbruggen@digia.com>
      - Leandro Melo <leandro.melo@nokia.com>
      - Peter Kuemmel <syntheticpp@gmx.net>
      - Sergey Shambir <sergey.shambir.auto@gmail.com>
      Change-Id: I4c3ff600a19b6732641c1d5ef28236bf2cc17737
      Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
  21. 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>
  22. 27 Mar, 2013 1 commit
  23. 12 Mar, 2013 1 commit
  24. 29 Jan, 2013 1 commit
  25. 05 Oct, 2012 1 commit
  26. 19 Jul, 2012 1 commit
  27. 26 Jan, 2012 1 commit
  28. 03 Nov, 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
  32. 12 Jan, 2011 1 commit
  33. 17 Dec, 2010 1 commit
  34. 08 Dec, 2010 2 commits
  35. 01 Dec, 2010 1 commit
  36. 05 Nov, 2010 1 commit
  37. 14 May, 2010 1 commit