clang-tools  9.0.0
Namespaces | Functions
AST.cpp File Reference
#include "AST.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Decl.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/TemplateBase.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Index/USRGeneration.h"
#include "llvm/ADT/Optional.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/ScopedPrinter.h"
#include "llvm/Support/raw_ostream.h"
Include dependency graph for AST.cpp:

Go to the source code of this file.

Namespaces

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

Functions

bool clang::clangd::isSpelledInSourceCode (const Decl *D)
 
bool clang::clangd::isImplementationDetail (const Decl *D)
 Returns true if the declaration is considered implementation detail based on heuristics. More...
 
SourceLocation clang::clangd::findNameLoc (const clang::Decl *D)
 Find the identifier source location of the given D. More...
 
std::string clang::clangd::printQualifiedName (const NamedDecl &ND)
 Returns the qualified name of ND. 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...
 
std::string clang::clangd::printNamespaceScope (const DeclContext &DC)
 Returns the first enclosing namespace scope starting from DC. 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 IdentifierInfo &II, const MacroInfo *MI, const SourceManager &SM)
 Gets the symbol ID for a macro, if possible. More...
 
std::string clang::clangd::shortenNamespace (const llvm::StringRef OriginalName, const llvm::StringRef CurrentNamespace)
 Try to shorten the OriginalName by removing namespaces from the left of the string that are redundant in the CurrentNamespace. More...
 
std::string clang::clangd::printType (const QualType QT, const DeclContext &Context)
 Returns a QualType as string. More...