diff options
author | Christian Stenger <christian.stenger@qt.io> | 2018-01-08 15:14:33 +0100 |
---|---|---|
committer | Christian Stenger <christian.stenger@qt.io> | 2018-01-16 07:35:06 +0000 |
commit | a4c318d5e12677395a6e4b59767f2d1300dcd6e9 (patch) | |
tree | 9f8e63113ef5b4a4f7c1b3afa97d2aa432f4b6bf /src/plugins/autotest/quick/quicktestparser.cpp | |
parent | 21e7e9ea3bf613b14d94c0642e37e57164c1d6bd (diff) | |
download | qt-creator-a4c318d5e12677395a6e4b59767f2d1300dcd6e9.tar.gz |
AutoTest: Fix wrong behavior when rescan is triggered
If the code parsers perform a full scan then do not use
cached information.
Change-Id: Ib9635c9715841ab71b97edfe42c4fe9d9d20c23a
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/autotest/quick/quicktestparser.cpp')
-rw-r--r-- | src/plugins/autotest/quick/quicktestparser.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/plugins/autotest/quick/quicktestparser.cpp b/src/plugins/autotest/quick/quicktestparser.cpp index 46566952ff..73e6ed3080 100644 --- a/src/plugins/autotest/quick/quicktestparser.cpp +++ b/src/plugins/autotest/quick/quicktestparser.cpp @@ -303,11 +303,12 @@ QuickTestParser::~QuickTestParser() { } -void QuickTestParser::init(const QStringList &filesToParse) +void QuickTestParser::init(const QStringList &filesToParse, bool fullParse) { m_qmlSnapshot = QmlJSTools::Internal::ModelManager::instance()->snapshot(); - m_proFilesForQmlFiles = QuickTestUtils::proFilesForQmlFiles(id(), filesToParse); - CppParser::init(filesToParse); + if (!fullParse) // in a full parse we get the correct entry points by the respective main + m_proFilesForQmlFiles = QuickTestUtils::proFilesForQmlFiles(id(), filesToParse); + CppParser::init(filesToParse, fullParse); } void QuickTestParser::release() |