forked from qt-creator/qt-creator
CppEditor: Make check for clangd more fine-grained
... in the quickfix factories. We want to be able to offer or not offer certain quickfixes based on the current clangd version. Change-Id: I7dca69ff990ab9f1a691785cd72e633f7882ae3d Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -1714,7 +1714,7 @@ bool CppModelManager::isCppEditor(IEditor *editor)
|
||||
return editor->context().contains(ProjectExplorer::Constants::CXX_LANGUAGE_ID);
|
||||
}
|
||||
|
||||
bool CppModelManager::usesClangd(const TextEditor::TextDocument *document)
|
||||
std::optional<QVersionNumber> CppModelManager::usesClangd(const TextEditor::TextDocument *document)
|
||||
{
|
||||
return d->m_activeModelManagerSupport->usesClangd(document);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user