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:
Christian Stenger
2018-01-08 15:14:33 +01:00
parent 21e7e9ea3b
commit a4c318d5e1
7 changed files with 17 additions and 13 deletions

View File

@@ -61,7 +61,7 @@ class ITestParser
{
public:
virtual ~ITestParser() { }
virtual void init(const QStringList &filesToParse) = 0;
virtual void init(const QStringList &filesToParse, bool fullParse) = 0;
virtual bool processDocument(QFutureInterface<TestParseResultPtr> futureInterface,
const QString &fileName) = 0;
virtual void release() = 0;
@@ -76,7 +76,7 @@ class CppParser : public ITestParser
{
public:
CppParser();
void init(const QStringList &filesToParse) override;
void init(const QStringList &filesToParse, bool fullParse) override;
static bool selectedForBuilding(const QString &fileName);
static QByteArray getFileContent(const QString &filePath);
void release() override;