forked from qt-creator/qt-creator
ClangCodeModel: Make some ClangModelManagerSupport methods static
Change-Id: Ie34a89ae01783631c6482cff8d4866595e757be5 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -383,10 +383,8 @@ void doSemanticHighlighting(
|
||||
}
|
||||
QMetaObject::invokeMethod(ClangModelManagerSupport::instance(),
|
||||
[filePath, virtualRanges, docRevision] {
|
||||
if (ClangdClient * const client
|
||||
= ClangModelManagerSupport::instance()->clientForFile(filePath)) {
|
||||
if (ClangdClient * const client = ClangModelManagerSupport::clientForFile(filePath))
|
||||
client->setVirtualRanges(filePath, virtualRanges, docRevision);
|
||||
}
|
||||
}, Qt::QueuedConnection);
|
||||
future.reportResults(QVector<HighlightingResult>(results.cbegin(), results.cend()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user