clang-tools 10.0.0

Namespaces | Typedefs | Functions
XRefs.cpp File Reference
`#include "XRefs.h"`
`#include "AST.h"`
`#include "CodeCompletionStrings.h"`
`#include "FindSymbols.h"`
`#include "FindTarget.h"`
`#include "Logger.h"`
`#include "ParsedAST.h"`
`#include "Protocol.h"`
`#include "Selection.h"`
`#include "SourceCode.h"`
`#include "URI.h"`
`#include "index/Index.h"`
`#include "index/Merge.h"`
`#include "index/Relation.h"`
`#include "index/SymbolLocation.h"`
`#include "clang/AST/ASTContext.h"`
`#include "clang/AST/Decl.h"`
`#include "clang/AST/DeclCXX.h"`
`#include "clang/AST/DeclTemplate.h"`
`#include "clang/AST/ExprCXX.h"`
`#include "clang/AST/Type.h"`
`#include "clang/Basic/LLVM.h"`
`#include "clang/Basic/SourceLocation.h"`
`#include "clang/Basic/SourceManager.h"`
`#include "clang/Index/IndexDataConsumer.h"`
`#include "clang/Index/IndexSymbol.h"`
`#include "clang/Index/IndexingAction.h"`
`#include "clang/Index/IndexingOptions.h"`
`#include "clang/Index/USRGeneration.h"`
`#include "llvm/ADT/ArrayRef.h"`
`#include "llvm/ADT/None.h"`
`#include "llvm/ADT/STLExtras.h"`
`#include "llvm/ADT/StringExtras.h"`
`#include "llvm/ADT/StringRef.h"`
`#include "llvm/Support/Casting.h"`
`#include "llvm/Support/Path.h"`
`#include "llvm/Support/raw_ostream.h"`
Include dependency graph for XRefs.cpp:

Go to the source code of this file.

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

## Typedefs
using | clang::clangd::RecursionProtectionSet = llvm::SmallSet< const CXXRecordDecl *, 4 >

## Functions
std::vector< DocumentLink > | clang::clangd::getDocumentLinks (ParsedAST &AST)
| Get all document links. More...
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...
ReferencesResult | clang::clangd::findReferences (ParsedAST &AST, Position Pos, uint32_t Limit, const SymbolIndex *Index=nullptr)
| Returns references 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::symbolToTypeHierarchyItem (const Symbol &S, const SymbolIndex *Index, PathRef TUPath)
static void | clang::clangd::fillSubTypes (const SymbolID &ID, std::vector< TypeHierarchyItem > &SubTypes, const SymbolIndex *Index, int Levels, PathRef TUPath)
static void | clang::clangd::fillSuperTypes (const CXXRecordDecl &CXXRD, ASTContext &ASTCtx, std::vector< TypeHierarchyItem > &SuperTypes, RecursionProtectionSet &RPSet)
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, const SymbolIndex *Index=nullptr, PathRef TUPath=PathRef{})
| Get type hierarchy information at `Pos`. More...
void | clang::clangd::resolveTypeHierarchy (TypeHierarchyItem &Item, int ResolveLevels, TypeHierarchyDirection Direction, const SymbolIndex *Index)
llvm::DenseSet< const Decl * > | clang::clangd::getNonLocalDeclRefs (ParsedAST &AST, const FunctionDecl *FD)
| Returns all decls that are referenced in the `FD` except local symbols. More...

## Variable Documentation

## ◆ Loc

SourceLocation Loc

Definition at line 330 of file XRefs.cpp.

## ◆ Role

index::SymbolRoleSet Role

Definition at line 331 of file XRefs.cpp.