diff options
author | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2016-10-20 13:18:54 +0200 |
---|---|---|
committer | Nikolai Kosjar <nikolai.kosjar@qt.io> | 2016-10-31 15:09:01 +0000 |
commit | 6e6d5b53091d598478c90669d85af25136cc2ea5 (patch) | |
tree | 88b6a3337c0ad8468f02759b4baa8378df88d607 /src/plugins/nim | |
parent | f952c3ee4a2a7f1560a1718c29967bc181a5bba2 (diff) | |
download | qt-creator-6e6d5b53091d598478c90669d85af25136cc2ea5.tar.gz |
ClangStaticAnalyzer: Tests: Rely on projects telling when they finished parsing
We relied on the CppModelManager to tell us whether a project was reparsed
after a kit change. While this worked, it was not guaranteed that the project
is really finished (and ready for e.g. building) after pushing new ProjectInfos
to the CppModelManager.
Rely on the projects telling when they are finished with parsing. This is more
accurate and future-proof.
The introduced signals in Project and SessionManager are (at the moment)
only for tests.
Change-Id: I1b368ec4585ffa8755eb28fac6d187cce31243ee
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/plugins/nim')
-rw-r--r-- | src/plugins/nim/project/nimproject.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/nim/project/nimproject.cpp b/src/plugins/nim/project/nimproject.cpp index 2f57238ef6..eb0829e7a6 100644 --- a/src/plugins/nim/project/nimproject.cpp +++ b/src/plugins/nim/project/nimproject.cpp @@ -112,6 +112,8 @@ void NimProject::populateProject() rootProjectNode()->buildTree(fileNodes); emit fileListChanged(); + + emit parsingFinished(); } void NimProject::recursiveScanDirectory(const QDir &dir, QSet<QString> &container) |