From c0a44be27bce4dbfc64218db4b2a2caf27718a3c Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Tue, 8 Jun 2021 14:28:25 +0200 Subject: ClangCodeModel: Provide outline via clangd Note that we used to encode the information about symbol visibility and static-ness in the icons, which we can't do anymore, because clangd does not provide this information. On the upside, this change likely fixes a ton of bugs, as our own outline was rather "quirky". Change-Id: I099f11ec4e3c6f52cd461fb43080bbdde3bed5e5 Reviewed-by: David Schulz --- src/plugins/cpptools/cppmodelmanager.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/cpptools/cppmodelmanager.h') diff --git a/src/plugins/cpptools/cppmodelmanager.h b/src/plugins/cpptools/cppmodelmanager.h index 98991f9c6c..402f37bee6 100644 --- a/src/plugins/cpptools/cppmodelmanager.h +++ b/src/plugins/cpptools/cppmodelmanager.h @@ -142,6 +142,7 @@ public: void emitAbstractEditorSupportRemoved(const QString &filePath); static bool isCppEditor(Core::IEditor *editor); + static bool supportsOutline(const TextEditor::TextDocument *document); bool isClangCodeModelActive() const; QSet abstractEditorSupports() const; -- cgit v1.2.1