clang-tools 10.0.0

Namespaces | Functions
AST.h File Reference
`#include "index/SymbolID.h"`
`#include "clang/AST/Decl.h"`
`#include "clang/AST/NestedNameSpecifier.h"`
`#include "clang/Basic/SourceLocation.h"`
`#include "clang/Lex/MacroInfo.h"`
`#include "llvm/ADT/DenseSet.h"`
`#include "llvm/ADT/StringRef.h"`
`#include <string>`
`#include <vector>`
Include dependency graph for AST.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

## Namespaces
| clang
| ===– Representation.cpp - ClangDoc Representation --------—*- C++ -*-===//
| clang::clangd

## Functions
bool | clang::clangd::isImplementationDetail (const Decl *D)
| Returns true if the declaration is considered implementation detail based on heuristics. More...
SourceLocation | clang::clangd::nameLocation (const clang::Decl &D, const SourceManager &SM)
| Find the source location of the identifier for `D`. More...
std::string | clang::clangd::printQualifiedName (const NamedDecl &ND)
| Returns the qualified name of ND. More...
std::string | clang::clangd::printNamespaceScope (const DeclContext &DC)
| Returns the first enclosing namespace scope starting from `DC`. More...
std::string | clang::clangd::printUsingNamespaceName (const ASTContext &Ctx, const UsingDirectiveDecl &D)
| Returns the name of the namespace inside the 'using namespace' directive, as written in the code. More...
std::string | clang::clangd::printName (const ASTContext &Ctx, const NamedDecl &ND)
| Prints unqualified name of the decl for the purpose of displaying it to the user. More...
std::string | clang::clangd::printTemplateSpecializationArgs (const NamedDecl &ND)
| Prints template arguments of a decl as written in the source code, including enclosing '<' and '>', e.g for a partial specialization like: template <typename u>=""> struct Foo<int, U> will return '<int, U>'. More...
llvm::Optional< SymbolID > | clang::clangd::getSymbolID (const Decl *D)
| Gets the symbol ID for a declaration, if possible. More...
llvm::Optional< SymbolID > | clang::clangd::getSymbolID (const llvm::StringRef MacroName, const MacroInfo *MI, const SourceManager &SM)
| Gets the symbol ID for a macro, if possible. More...
std::string | clang::clangd::printType (const QualType QT, const DeclContext &CurContext)
| Returns a QualType as string. More...
bool | clang::clangd::isImplicitTemplateInstantiation (const NamedDecl *D)
| Indicates if `D` is a template instantiation implicitly generated by the compiler, e.g. More...
bool | clang::clangd::isExplicitTemplateSpecialization (const NamedDecl *D)
| Indicates if `D` is an explicit template specialization, e.g. More...
NestedNameSpecifierLoc | clang::clangd::getQualifierLoc (const NamedDecl &ND)
| Returns a nested name specifier loc of `ND` if it was present in the source, e.g. More...
QualType | clang::clangd::declaredType (const TypeDecl *D)
llvm::Optional< QualType > | clang::clangd::getDeducedType (ASTContext &, SourceLocation Loc)
| Retrieves the deduced type at a given location (auto, decltype). More...
std::string | clang::clangd::getQualification (ASTContext &Context, const DeclContext *DestContext, SourceLocation InsertionPoint, const NamedDecl *ND)
| Gets the nested name specifier necessary for spelling `ND` in `DestContext`, at `InsertionPoint`. More...
std::string | clang::clangd::getQualification (ASTContext &Context, const DeclContext *DestContext, const NamedDecl *ND, llvm::ArrayRef< std::string > VisibleNamespaces)
| This function uses the `VisibleNamespaces` to figure out if a shorter qualification is sufficient for `ND`, and ignores any using namespace directives. More...