14 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANGD_AST_H_ 15 #define LLVM_CLANG_TOOLS_EXTRA_CLANGD_AST_H_ 18 #include "clang/AST/Decl.h" 19 #include "clang/Basic/SourceLocation.h" 48 std::string
printName(
const ASTContext &
Ctx,
const NamedDecl &ND);
60 llvm::Optional<SymbolID>
getSymbolID(
const IdentifierInfo &II,
62 const SourceManager &SM);
67 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANGD_AST_H_ std::string printName(const ASTContext &Ctx, const NamedDecl &ND)
Prints unqualified name of the decl for the purpose of displaying it to the user. ...
std::string printQualifiedName(const NamedDecl &ND)
Returns the qualified name of ND.
llvm::Optional< SymbolID > getSymbolID(const Decl *D)
Gets the symbol ID for a declaration, if possible.
std::string printNamespaceScope(const DeclContext &DC)
Returns the first enclosing namespace scope starting from DC.
SourceLocation findNameLoc(const clang::Decl *D)
Find the identifier source location of the given D.
===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
bool isImplementationDetail(const Decl *D)
Returns true if the declaration is considered implementation detail based on heuristics.