clang-tools  10.0.0svn
Classes | Namespaces | Functions
XRefs.h File Reference
#include "FormattedString.h"
#include "Path.h"
#include "Protocol.h"
#include "index/Index.h"
#include "index/SymbolLocation.h"
#include "clang/AST/Type.h"
#include "clang/Format/Format.h"
#include "clang/Index/IndexSymbol.h"
#include "llvm/ADT/Optional.h"
#include "llvm/Support/raw_ostream.h"
#include <vector>
Include dependency graph for XRefs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  clang::clangd::LocatedSymbol
 
struct  clang::clangd::HoverInfo
 Contains detailed information about a Symbol. More...
 
struct  clang::clangd::HoverInfo::Param
 Represents parameters of a function, a template or a macro. More...
 

Namespaces

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

Functions

llvm::raw_ostream & clang::clangd::operator<< (llvm::raw_ostream &OS, const LocatedSymbol &S)
 
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...
 
llvm::raw_ostream & clang::clangd::operator<< (llvm::raw_ostream &OS, const HoverInfo::Param &P)
 
bool clang::clangd::operator== (const HoverInfo::Param &LHS, const HoverInfo::Param &RHS)
 
llvm::Optional< HoverInfo > clang::clangd::getHover (ParsedAST &AST, Position Pos, format::FormatStyle Style, const SymbolIndex *Index)
 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...
 
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::Optional< QualType > clang::clangd::getDeducedType (ParsedAST &AST, SourceLocation SourceLocationBeg)
 Retrieves the deduced type at a given location (auto, decltype). More...
 
bool clang::clangd::hasDeducedType (ParsedAST &AST, SourceLocation SourceLocationBeg)
 Retrieves the deduced type at a given location (auto, decltype). More...
 
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...