10 #ifndef LLVM_CLANG_LIB_INDEX_INDEXINGCONTEXT_H 11 #define LLVM_CLANG_LIB_INDEX_INDEXINGCONTEXT_H 16 #include "llvm/ADT/ArrayRef.h" 28 class NestedNameSpecifierLoc;
35 class IndexDataConsumer;
44 : IndexOpts(IndexOpts), DataConsumer(DataConsumer) {}
80 const Expr *RefE =
nullptr,
81 const Decl *RefD =
nullptr);
93 bool isIBType =
false);
98 bool isIBType =
false);
113 bool shouldIgnoreIfImplicit(
const Decl *D);
116 bool IsRef,
const Decl *Parent,
Stmt - This represents one statement.
bool shouldSuppressRefs() const
void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent, const DeclContext *DC=nullptr, bool isBase=false, bool isIBType=false)
Decl - This represents one declaration (or definition), e.g.
bool indexTopLevelDecl(const Decl *D)
The l-value was an access to a declared entity or something equivalently strong, like the address of ...
A container of type source information.
void setASTContext(ASTContext &ctx)
IndexingContext(IndexingOptions IndexOpts, IndexDataConsumer &DataConsumer)
Base wrapper for a particular "section" of type source info.
const LangOptions & getLangOpts() const
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
A C++ nested-name-specifier augmented with source location information.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified...
bool shouldIndexFunctionLocalSymbols() const
bool indexDecl(const Decl *D)
Expr - This represents one expression.
bool indexDeclContext(const DeclContext *DC)
bool indexDeclGroupRef(DeclGroupRef DG)
static bool isTemplateImplicitInstantiation(const Decl *D)
bool handleReference(const NamedDecl *D, SourceLocation Loc, const NamedDecl *Parent, const DeclContext *DC, SymbolRoleSet Roles=SymbolRoleSet(), ArrayRef< SymbolRelation > Relations=None, const Expr *RefE=nullptr, const Decl *RefD=nullptr)
Encodes a location in the source.
TagDecl - Represents the declaration of a struct/union/class/enum.
Describes a module import declaration, which makes the contents of the named module visible in the cu...
bool shouldIndex(const Decl *D)
Dataflow Directional Tag Classes.
bool handleDecl(const Decl *D, SymbolRoleSet Roles=SymbolRoleSet(), ArrayRef< SymbolRelation > Relations=None)
DeclContext - This is used only as base class of specific decl types that can act as declaration cont...
void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent, const DeclContext *DC=nullptr, bool isBase=false, bool isIBType=false)
void indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, const NamedDecl *Parent, const DeclContext *DC=nullptr)
void indexTagDecl(const TagDecl *D, ArrayRef< SymbolRelation > Relations=None)
bool importedModule(const ImportDecl *ImportD)
IndexDataConsumer & getDataConsumer()
bool shouldIndexImplicitTemplateInsts() const
void indexBody(const Stmt *S, const NamedDecl *Parent, const DeclContext *DC=nullptr)
NamedDecl - This represents a decl with a name.
const IndexingOptions & getIndexOpts() const