1. 26 Jan, 2015 1 commit
  2. 10 Nov, 2014 1 commit
  3. 15 Oct, 2014 1 commit
  4. 30 Sep, 2014 1 commit
  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 1 commit
  7. 26 Jun, 2014 1 commit
  8. 13 Jun, 2014 4 commits
  9. 12 Jun, 2014 1 commit
  10. 11 Mar, 2014 1 commit
  11. 11 Feb, 2014 1 commit
  12. 27 Jan, 2014 1 commit
  13. 07 Jan, 2014 1 commit
  14. 12 Dec, 2013 1 commit
  15. 11 Dec, 2013 2 commits
  16. 15 Nov, 2013 1 commit
  17. 23 Oct, 2013 1 commit
  18. 17 Oct, 2013 1 commit
  19. 09 Oct, 2013 1 commit
  20. 02 Oct, 2013 1 commit
  21. 01 Oct, 2013 3 commits
  22. 09 Sep, 2013 1 commit
  23. 02 Sep, 2013 1 commit
    • Christian Kandeler's avatar
      Remove superfluous include paths from project files. · 72d17382
      Christian Kandeler authored
      A lot of our build system files specify unneeded include
      paths. These roughly fall into the following categories:
          a) Paths that are already set in more general files
             such as qtcreator.pri.
          b) Paths that serve no purpose at all, possibly
             left over from earlier versions of the project.
          c) Paths that act as workarounds for wrong include
             statements of the form '#include "xyz.h"', where
             xyz.h is not in the same directory as the including
            file.
      This patch removes such path specifications and fixes the offending
      include statements from case c).
      Tested on Linux, Windows and OSX with qmake and qbs.
      
      Change-Id: I039a8449f8a65df0d616b4c08081145c18ae4b15
      Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@digia.com>
      Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@digia.com>
      72d17382
  24. 29 Aug, 2013 1 commit
  25. 23 Jul, 2013 1 commit
  26. 09 Jul, 2013 1 commit
  27. 07 Jun, 2013 1 commit
  28. 06 Jun, 2013 1 commit
  29. 27 May, 2013 1 commit
  30. 07 May, 2013 1 commit
  31. 30 Apr, 2013 1 commit
  32. 19 Apr, 2013 1 commit
  33. 15 Apr, 2013 1 commit
    • Lorenz Haas's avatar
      CppEditor: Rearrange quick fix files · 61ddf166
      Lorenz Haas authored
      Moved content of cppinsertdecldef.(cpp|h) cppcompleteswitch.(cpp|h)
      cppinsertqtpropertymembers.(cpp|h) and ApplyDeclDefLinkChanges to
      cppquickfixes.(cpp|h).
      
      Made msgQtStringLiteralDescription private member function of
      WrapStringLiteral, added anonymous namespace, "extracted" useful
      functions to the top of cppquickfixes.cpp.
      
      Change-Id: I4f82a005a62be3c29d4b96902667bd3a2b9397cc
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@digia.com>
      61ddf166
  34. 11 Apr, 2013 1 commit
    • Nikolai Kosjar's avatar
      C++: Tests: Add stupid "do xyz for each file/token" tests · 1a986451
      Nikolai Kosjar authored
      Introduce tests that execute test actions on each word/token of each
      file from every loaded project. Currently, besides just opening files
      and moving token by token through the files, the following basic actions
      from the CppTools and CppEditor plugin are executed for each token:
      
          - Follow Symbol Under Cursor
          - Switch Declaration/Definition
          - Find Usages
          - Rename Symbol Under Cursor
          - Open Type Hierarchy
          - Invoke Completion
          - Trigger a quick fix in this scope (+perform)
      
      Note that
      
      (1) These tests are meant to detect corner cases for which Qt Creator
          crashes or outputs QTC_ASSERTS. Correct behavior is not tested.
      
      (2) These tests operate on the loaded projects. Therefore, projects
          should be specified on the command line or should be loaded by the
          session manager. Depending on the projects size, these tests might
          be quite time consuming and are therefore candidates for nightly
          tests.
      
          Suggested test projects are qtcreator.pro, qtbase.pro.
      
      Change-Id: I550776b3d56acb17ab337da068d409bfc21e997a
      Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
      1a986451