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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user