diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2021-06-08 14:28:25 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2021-07-01 08:36:20 +0000 |
commit | c0a44be27bce4dbfc64218db4b2a2caf27718a3c (patch) | |
tree | 70c0bbf4304c86630d1361554901e7dd5d7a1376 /src/plugins/cpptools/cppmodelmanager.h | |
parent | f4a33100591f0a6b2d9c79877540dd8637a6eaf7 (diff) | |
download | qt-creator-c0a44be27bce4dbfc64218db4b2a2caf27718a3c.tar.gz |
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 <david.schulz@qt.io>
Diffstat (limited to 'src/plugins/cpptools/cppmodelmanager.h')
-rw-r--r-- | src/plugins/cpptools/cppmodelmanager.h | 1 |
1 files changed, 1 insertions, 0 deletions
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<AbstractEditorSupport*> abstractEditorSupports() const; |