diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2022-05-10 17:21:59 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2022-05-11 07:41:44 +0000 |
commit | 52959ce472c3e95d12681bdef129d34dfb3f2502 (patch) | |
tree | f07e2c0ee45033d02ac76bad64df4ed5601e6ca0 /src/plugins/cppeditor/cppoutline.cpp | |
parent | c1fcaa28775240af47c62c479918d6f08e74617d (diff) | |
download | qt-creator-52959ce472c3e95d12681bdef129d34dfb3f2502.tar.gz |
CppEditor: Acknowledge the existence of clangd
Stop pretending to be super generic. Instead, let interested code know
directly whether a document is under clangd's control.
This saves code and makes the logic easier to understand.
Change-Id: Ia19d0ec6c4e83926379a7d17ca53896bee3a50e1
Reviewed-by: David Schulz <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cppeditor/cppoutline.cpp')
-rw-r--r-- | src/plugins/cppeditor/cppoutline.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/cppeditor/cppoutline.cpp b/src/plugins/cppeditor/cppoutline.cpp index 272cea574a..dbb06361d0 100644 --- a/src/plugins/cppeditor/cppoutline.cpp +++ b/src/plugins/cppeditor/cppoutline.cpp @@ -213,7 +213,7 @@ bool CppOutlineWidgetFactory::supportsEditor(Core::IEditor *editor) const const auto cppEditor = qobject_cast<TextEditor::BaseTextEditor*>(editor); if (!cppEditor || !CppModelManager::isCppEditor(cppEditor)) return false; - return CppModelManager::supportsOutline(cppEditor->textDocument()); + return !CppModelManager::usesClangd(cppEditor->textDocument()); } TextEditor::IOutlineWidget *CppOutlineWidgetFactory::createWidget(Core::IEditor *editor) |