diff options
Diffstat (limited to 'clang-tools-extra/clangd/Selection.h')
-rw-r--r-- | clang-tools-extra/clangd/Selection.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/Selection.h b/clang-tools-extra/clangd/Selection.h index 24d06090338..a501a9902b4 100644 --- a/clang-tools-extra/clangd/Selection.h +++ b/clang-tools-extra/clangd/Selection.h @@ -96,6 +96,8 @@ public: // Walk up the AST to get the DeclContext of this Node, // which is not the node itself. const DeclContext& getDeclContext() const; + // Printable node kind, like "CXXRecordDecl" or "AutoTypeLoc". + std::string kind() const; }; // The most specific common ancestor of all the selected nodes. // If there is no selection, this is nullptr. |