diff options
Diffstat (limited to 'clang-tools-extra/clangd/AST.h')
-rw-r--r-- | clang-tools-extra/clangd/AST.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/AST.h b/clang-tools-extra/clangd/AST.h index eddabdafd1d..b05e0a22477 100644 --- a/clang-tools-extra/clangd/AST.h +++ b/clang-tools-extra/clangd/AST.h @@ -104,6 +104,12 @@ bool isImplicitTemplateInstantiation(const NamedDecl *D); /// explicit specialization. bool isExplicitTemplateSpecialization(const NamedDecl *D); +/// Returns a nested name specifier loc of \p ND if it was present in the +/// source, e.g. +/// void ns::something::foo() -> returns 'ns::something' +/// void foo() -> returns null +NestedNameSpecifierLoc getQualifierLoc(const NamedDecl &ND); + } // namespace clangd } // namespace clang |