forked from qt-creator/qt-creator
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>
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user