ClangRefactoring: Clear input files after collecting symbols

Change-Id: Ic4fbaac7ad3b3f80223d6cbb84a34dffa741fc4f
Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
Marco Bubke
2019-05-06 15:37:55 +02:00
parent 63c4428287
commit 98d7b502ca
3 changed files with 26 additions and 5 deletions

View File

@@ -129,7 +129,11 @@ bool SymbolsCollector::collectSymbols()
auto actionFactory = ClangBackEnd::newFrontendActionFactory(&m_collectSymbolsAction);
return tool.run(actionFactory.get()) != 1;
bool noErrors = tool.run(actionFactory.get()) != 1;
m_clangTool = ClangTool();
return noErrors;
}
void SymbolsCollector::doInMainThreadAfterFinished()

View File

@@ -63,6 +63,8 @@ public:
bool isUsed() const override;
void setIsUsed(bool isUsed) override;
bool isClean() const { return m_clangTool.isClean(); }
private:
FilePathCaching m_filePathCache;
ClangTool m_clangTool;