Skip to content
Snippets Groups Projects
  1. Feb 02, 2016
  2. Jan 19, 2016
  3. Jan 13, 2016
  4. Jan 12, 2016
    • Marco Bubke's avatar
      CppTools: Add CppToolsBridge · 6fe9b0cc
      Marco Bubke authored
      
      We broke the dependency of
      BaseEditorDocumentProcessor *BaseEditorDocumentProcessor::get(const QString &filePath)
      
      It's hiding static calls and it is much easier to do it that way than to
      provide a reference to every user. It's also possible to exchange it with
      different implementations for different test cases.
      
      Change-Id: Ic74699b45948e8b48f7efb6a1b295ba2641b8951
      Reviewed-by: default avatarNikolai Kosjar <nikolai.kosjar@theqtcompany.com>
      6fe9b0cc
  5. Apr 24, 2015
    • Nikolai Kosjar's avatar
      CppTools: Remove separate indexing revision · d4bb5033
      Nikolai Kosjar authored
      
      For indexing we used a custom revision that was updated on each
      modelManager BuiltinIndexingSupport::refreshSourceFiles() call. This
      could lead to rejection of updated documents triggered by refactoring
      actions, like for the following case:
      
       1. Open a project containing a.h and a.cpp
       2. Open a.cpp, insert some new lines, save and close the document
       3. Open a.h and rename a function that is defined in a.cpp
          --> The refactoring action modifies a.h and a.cpp, so re-indexing
              of those is triggered. Since a.cpp has already a higher revision
              (step 2) than the updated document, the updated document is
              discarded. As a consequence find usages and follow symbol fails
              for the renamed function.
      
      Now the document call back provided to CppSourceProcessor is responsible
      for updating the document revision based on the latest revision in the
      global snapshot.
      
      Change-Id: I4dfa0a4d34991655acfa749109f00c47b0fbfdbe
      Reviewed-by: default avatarOrgad Shaneh <orgads@gmail.com>
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@theqtcompany.com>
      Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
      d4bb5033
  6. Jan 16, 2015
  7. Oct 09, 2014
  8. Sep 19, 2014
  9. Sep 04, 2014
  10. Aug 20, 2014
  11. 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
    • Nikolai Kosjar's avatar
      CppTools: Builtin-Indexer: Remove superfluous member · 70ca7496
      Nikolai Kosjar authored
      
      Change-Id: Ia76a59f0c2739bec5e145edce3ca8711f54b5fa4
      Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
      70ca7496
  12. Jan 08, 2014
  13. Jun 24, 2013
  14. Apr 10, 2013
  15. Apr 08, 2013
  16. Mar 28, 2013
  17. Dec 04, 2012
  18. Nov 26, 2012
Loading