9#ifndef LLVM_CLANG_LIB_INDEX_INDEXINGCONTEXT_H
10#define LLVM_CLANG_LIB_INDEX_INDEXINGCONTEXT_H
17#include "llvm/ADT/ArrayRef.h"
29 class NestedNameSpecifierLoc;
36 class IndexDataConsumer;
45 : IndexOpts(IndexOpts), DataConsumer(DataConsumer) {}
76 const DeclContext *DC =
nullptr);
79 const NamedDecl *
Parent,
const DeclContext *DC,
81 ArrayRef<SymbolRelation> Relations = {},
82 const Expr *RefE =
nullptr);
97 void indexTagDecl(
const TagDecl *
D, ArrayRef<SymbolRelation> Relations = {});
100 const DeclContext *DC =
nullptr,
102 bool isIBType =
false);
105 const DeclContext *DC =
nullptr,
107 bool isIBType =
false);
111 const DeclContext *DC =
nullptr);
116 const DeclContext *DC =
nullptr);
122 bool shouldIgnoreIfImplicit(
const Decl *
D);
124 bool shouldIndexMacroOccurrence(
bool IsRef, SourceLocation
Loc);
126 bool handleDeclOccurrence(
const Decl *
D, SourceLocation
Loc,
127 bool IsRef,
const Decl *
Parent,
129 ArrayRef<SymbolRelation> Relations,
132 const DeclContext *ContainerDC);
Defines the clang::IdentifierInfo, clang::IdentifierTable, and clang::Selector interfaces.
Forward-declares and imports various common LLVM datatypes that clang wants to use unqualified.
Defines the clang::MacroInfo and clang::MacroDirective classes.
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Decl - This represents one declaration (or definition), e.g.
Keeps track of the various options that can be enabled, which controls the dialect of C or C++ that i...
Encodes a location in the source.
bool shouldIndexImplicitInstantiation() const
IndexDataConsumer & getDataConsumer()
bool importedModule(const ImportDecl *ImportD)
bool handleDecl(const Decl *D, SymbolRoleSet Roles=SymbolRoleSet(), ArrayRef< SymbolRelation > Relations={})
bool shouldIndex(const Decl *D)
bool indexDeclContext(const DeclContext *DC)
bool handleReference(const NamedDecl *D, SourceLocation Loc, const NamedDecl *Parent, const DeclContext *DC, SymbolRoleSet Roles=SymbolRoleSet(), ArrayRef< SymbolRelation > Relations={}, const Expr *RefE=nullptr)
void indexTagDecl(const TagDecl *D, ArrayRef< SymbolRelation > Relations={})
bool shouldIndexFunctionLocalSymbols() const
const IndexingOptions & getIndexOpts() const
void indexNestedNameSpecifierLoc(NestedNameSpecifierLoc NNS, const NamedDecl *Parent, const DeclContext *DC=nullptr)
void handleMacroReference(const IdentifierInfo &Name, SourceLocation Loc, const MacroInfo &MD)
bool indexTopLevelDecl(const Decl *D)
void indexTypeLoc(TypeLoc TL, const NamedDecl *Parent, const DeclContext *DC=nullptr, bool isBase=false, bool isIBType=false)
bool shouldIndexTemplateParameters() const
void indexBody(const Stmt *S, const NamedDecl *Parent, const DeclContext *DC=nullptr)
bool shouldIndexParametersInDeclarations() const
bool indexDeclGroupRef(DeclGroupRef DG)
void handleMacroUndefined(const IdentifierInfo &Name, SourceLocation Loc, const MacroInfo &MI)
static bool isTemplateImplicitInstantiation(const Decl *D)
bool shouldSuppressRefs() const
const LangOptions & getLangOpts() const
bool indexDecl(const Decl *D)
IndexingContext(IndexingOptions IndexOpts, IndexDataConsumer &DataConsumer)
void handleMacroDefined(const IdentifierInfo &Name, SourceLocation Loc, const MacroInfo &MI)
void setASTContext(ASTContext &ctx)
void indexTypeSourceInfo(TypeSourceInfo *TInfo, const NamedDecl *Parent, const DeclContext *DC=nullptr, bool isBase=false, bool isIBType=false)
@ Decl
The l-value was an access to a declared entity or something equivalently strong, like the address of ...
The JSON file list parser is used to communicate input to InstallAPI.