diff options
author | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2014-08-05 11:34:52 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@digia.com> | 2014-08-07 11:04:53 +0200 |
commit | 0f3032f8403de34692edd5c12ed28b2ddfec777f (patch) | |
tree | c788d313386608baf2f0bb0c0a20450e626b5f68 /src/plugins/cpptools/builtinindexingsupport.h | |
parent | 8bf4a5b089a26474099f576e285026b7dcc47a7b (diff) |
CppTools: Tests: Add "Find Errors Indexing" mode
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: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/plugins/cpptools/builtinindexingsupport.h')
-rw-r--r-- | src/plugins/cpptools/builtinindexingsupport.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/cpptools/builtinindexingsupport.h b/src/plugins/cpptools/builtinindexingsupport.h index 02f267a2268..8a8669d3350 100644 --- a/src/plugins/cpptools/builtinindexingsupport.h +++ b/src/plugins/cpptools/builtinindexingsupport.h @@ -51,6 +51,9 @@ public: virtual SymbolSearcher *createSymbolSearcher(SymbolSearcher::Parameters parameters, QSet<QString> fileNames); +public: + static bool isFindErrorsIndexingActive(); + private: QFutureSynchronizer<void> m_synchronizer; unsigned m_revision; |