10 #ifndef LLVM_CLANG_INDEX_INDEXSYMBOL_H 11 #define LLVM_CLANG_INDEX_INDEXSYMBOL_H 14 #include "llvm/ADT/STLExtras.h" 15 #include "llvm/Support/DataTypes.h" 124 : Roles(Roles), RelatedSymbol(Sym) {}
StringRef getSymbolLanguageString(SymbolLanguage K)
Represents a relation to another symbol for a symbol occurrence.
bool printSymbolName(const Decl *D, const LangOptions &LO, raw_ostream &OS)
Decl - This represents one declaration (or definition), e.g.
The l-value was an access to a declared entity or something equivalently strong, like the address of ...
bool applyForEachSymbolRoleInterruptible(SymbolRoleSet Roles, llvm::function_ref< bool(SymbolRole)> Fn)
SymbolSubKind
Language specific sub-kinds.
void applyForEachSymbolProperty(SymbolPropertySet Props, llvm::function_ref< void(SymbolProperty)> Fn)
SymbolRole
Set of roles that are attributed to symbol occurrences.
bool isFunctionLocalSymbol(const Decl *D)
StringRef getSymbolKindString(SymbolKind K)
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
static const unsigned SymbolRoleBitNum
StringRef getSymbolSubKindString(SymbolSubKind K)
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
void printSymbolProperties(SymbolPropertySet Props, raw_ostream &OS)
uint8_t SymbolPropertySet
static const unsigned SymbolPropertyBitNum
void applyForEachSymbolRole(SymbolRoleSet Roles, llvm::function_ref< void(SymbolRole)> Fn)
Dataflow Directional Tag Classes.
SymbolRelation(SymbolRoleSet Roles, const Decl *Sym)
SymbolProperty
Set of properties that provide additional info about a symbol.
void printSymbolRoles(SymbolRoleSet Roles, raw_ostream &OS)
SymbolInfo getSymbolInfo(const Decl *D)
SymbolPropertySet Properties
const Decl * RelatedSymbol