forked from qt-creator/qt-creator
CppTools/Clang: Remove InMemoryInfo
...nowadays we only need the working copy. Change-Id: I30924b3c5dc68b428d6c10f6ba015b0640b476d2 Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
This commit is contained in:
@@ -40,7 +40,7 @@ ClangEditorDocumentParser::ClangEditorDocumentParser(const QString &filePath)
|
||||
setConfiguration(config);
|
||||
}
|
||||
|
||||
void ClangEditorDocumentParser::updateHelper(const BaseEditorDocumentParser::InMemoryInfo &)
|
||||
void ClangEditorDocumentParser::updateHelper(const CppTools::WorkingCopy &)
|
||||
{
|
||||
State state_ = state();
|
||||
state_.projectPart = determineProjectPart(filePath(), configuration(), state_);
|
||||
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
ClangEditorDocumentParser(const QString &filePath);
|
||||
|
||||
private:
|
||||
void updateHelper(const BaseEditorDocumentParser::InMemoryInfo &) override;
|
||||
void updateHelper(const CppTools::WorkingCopy &) override;
|
||||
};
|
||||
|
||||
} // namespace ClangCodeModel
|
||||
|
||||
@@ -104,9 +104,8 @@ void ClangEditorDocumentProcessor::run()
|
||||
m_parserRevision = revision();
|
||||
connect(&m_parserWatcher, &QFutureWatcher<void>::finished,
|
||||
this, &ClangEditorDocumentProcessor::onParserFinished);
|
||||
const QFuture<void> future = QtConcurrent::run(&runParser,
|
||||
parser(),
|
||||
ClangEditorDocumentParser::InMemoryInfo(true));
|
||||
const CppTools::WorkingCopy workingCopy = CppTools::CppModelManager::instance()->workingCopy();
|
||||
const QFuture<void> future = QtConcurrent::run(&runParser, parser(), workingCopy);
|
||||
m_parserWatcher.setFuture(future);
|
||||
|
||||
// Run builtin processor
|
||||
|
||||
Reference in New Issue
Block a user