forked from qt-creator/qt-creator
Clang: Do not call DocumentManager::modifiedDocuments() from worker thread
This is unsafe. Change-Id: I8ac075a7289afa0d84785e37b1325d186a153000 Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>
This commit is contained in:
@@ -162,7 +162,7 @@ void indexFindErrors(QFutureInterface<void> &future, const ParseParams params)
|
||||
// Parse the file as precisely as possible
|
||||
BuiltinEditorDocumentParser parser(file);
|
||||
parser.setReleaseSourceAndAST(false);
|
||||
parser.update(params.workingCopy);
|
||||
parser.update(BuiltinEditorDocumentParser::InMemoryInfo(false));
|
||||
CPlusPlus::Document::Ptr document = parser.document();
|
||||
QTC_ASSERT(document, return);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user