clang-tools  9.0.0svn
Namespaces | Functions
XRefs.cpp File Reference
#include "XRefs.h"
#include "AST.h"
#include "FindSymbols.h"
#include "Logger.h"
#include "SourceCode.h"
#include "URI.h"
#include "index/Merge.h"
#include "index/SymbolCollector.h"
#include "index/SymbolLocation.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/AST/RecursiveASTVisitor.h"
#include "clang/AST/Type.h"
#include "clang/Index/IndexDataConsumer.h"
#include "clang/Index/IndexSymbol.h"
#include "clang/Index/IndexingAction.h"
#include "clang/Index/USRGeneration.h"
#include "llvm/Support/Path.h"
Include dependency graph for XRefs.cpp:

Go to the source code of this file.


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


std::vector< LocatedSymbol > clang::clangd::locateSymbolAt (ParsedAST &AST, Position Pos, const SymbolIndex *Index=nullptr)
 Get definition of symbol at a specified Pos. More...
std::vector< DocumentHighlight > clang::clangd::findDocumentHighlights (ParsedAST &AST, Position Pos)
 Returns highlights for all usages of a symbol at Pos. More...
static PrintingPolicy clang::clangd::printingPolicyForDecls (PrintingPolicy Base)
static std::string clang::clangd::typeDeclToString (const TypeDecl *TD)
 Return a string representation (e.g. More...
static std::string clang::clangd::namedDeclQualifiedName (const NamedDecl *ND, llvm::StringRef Prefix)
 Return a string representation (e.g. More...
static llvm::Optional< std::string > clang::clangd::getScopeName (const Decl *D)
 Given a declaration D, return a human-readable string representing the scope in which it is declared. More...
static Hover clang::clangd::getHoverContents (const Decl *D)
 Generate a Hover object given the declaration D. More...
static Hover clang::clangd::getHoverContents (QualType T, ASTContext &ASTCtx)
 Generate a Hover object given the type T. More...
static Hover clang::clangd::getHoverContents (MacroDecl Decl, ParsedAST &AST)
 Generate a Hover object given the macro MacroDecl. More...
llvm::Optional< QualType > clang::clangd::getDeducedType (ParsedAST &AST, SourceLocation SourceLocationBeg)
 Retrieves the deduced type at a given location (auto, decltype). More...
llvm::Optional< Hover > clang::clangd::getHover (ParsedAST &AST, Position Pos)
 Get the hover information when hovering at Pos. More...
std::vector< Locationclang::clangd::findReferences (ParsedAST &AST, Position Pos, uint32_t Limit, const SymbolIndex *Index=nullptr)
 Returns reference locations of the symbol at a specified Pos. More...
std::vector< SymbolDetails > clang::clangd::getSymbolInfo (ParsedAST &AST, Position Pos)
 Get info about symbols at Pos. More...
llvm::raw_ostream & clang::clangd::operator<< (llvm::raw_ostream &OS, const LocatedSymbol &S)
static llvm::Optional< TypeHierarchyItem > clang::clangd::declToTypeHierarchyItem (ASTContext &Ctx, const NamedDecl &ND)
static Optional< TypeHierarchyItem > clang::clangd::getTypeAncestors (const CXXRecordDecl &CXXRD, ASTContext &ASTCtx)
const CXXRecordDecl * clang::clangd::findRecordTypeAt (ParsedAST &AST, Position Pos)
 Find the record type references at Pos. More...
std::vector< const CXXRecordDecl * > clang::clangd::typeParents (const CXXRecordDecl *CXXRD)
 Given a record type declaration, find its base (parent) types. More...
llvm::Optional< TypeHierarchyItem > clang::clangd::getTypeHierarchy (ParsedAST &AST, Position Pos, int Resolve, TypeHierarchyDirection Direction)
 Get type hierarchy information at Pos. More...

Variable Documentation

◆ CanonicalTarget

const Decl* CanonicalTarget

Definition at line 380 of file XRefs.cpp.

◆ Info

const MacroInfo* Info

Definition at line 114 of file XRefs.cpp.

◆ Loc

SourceLocation Loc

Definition at line 381 of file XRefs.cpp.

◆ Macros

std::vector<MacroDecl> Macros

Definition at line 226 of file XRefs.cpp.

◆ Name

llvm::StringRef Name

◆ Role

index::SymbolRoleSet Role

Definition at line 382 of file XRefs.cpp.