diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2024-02-20 16:23:25 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2024-02-21 10:02:07 +0000 |
commit | 5956254e6f8676d3f409e1c55b0388cfdda3dd2e (patch) | |
tree | 5ed9e72bcc4740612d7c9b3da78447c8ebf970aa /src/plugins/designer | |
parent | b9e4c98f1d0c9aac74ada21e1bd43795063b92d5 (diff) |
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>
Diffstat (limited to 'src/plugins/designer')
-rw-r--r-- | src/plugins/designer/qtcreatorintegration.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/designer/qtcreatorintegration.cpp b/src/plugins/designer/qtcreatorintegration.cpp index 267e0ddeeba..2da21f0e541 100644 --- a/src/plugins/designer/qtcreatorintegration.cpp +++ b/src/plugins/designer/qtcreatorintegration.cpp @@ -747,7 +747,8 @@ void QtCreatorIntegration::handleSymbolRenameStage2( // In the case of clangd, this entails doing a "virtual rename" on the TextDocument, // as the LanguageClient cannot be forced into taking a document and assuming a different // file path. - const bool usesClangd = CppEditor::CppModelManager::usesClangd(editorWidget->textDocument()); + const bool usesClangd + = CppEditor::CppModelManager::usesClangd(editorWidget->textDocument()).has_value(); if (usesClangd) editorWidget->textDocument()->setFilePath(uiHeader); editorWidget->textDocument()->setPlainText(QString::fromUtf8(virtualContent)); |