clang 19.0.0git
Public Member Functions | Static Public Member Functions | List of all members
clang::index::IndexingContext Class Reference

#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Index/IndexingContext.h"

Public Member Functions

 IndexingContext (IndexingOptions IndexOpts, IndexDataConsumer &DataConsumer)
 
const IndexingOptionsgetIndexOpts () const
 
IndexDataConsumergetDataConsumer ()
 
void setASTContext (ASTContext &ctx)
 
bool shouldIndex (const Decl *D)
 
const LangOptionsgetLangOpts () const
 
bool shouldSuppressRefs () const
 
bool shouldIndexFunctionLocalSymbols () const
 
bool shouldIndexImplicitInstantiation () const
 
bool shouldIndexParametersInDeclarations () const
 
bool shouldIndexTemplateParameters () const
 
bool handleDecl (const Decl *D, SymbolRoleSet Roles=SymbolRoleSet(), ArrayRef< SymbolRelation > Relations=std::nullopt)
 
bool handleDecl (const Decl *D, SourceLocation Loc, SymbolRoleSet Roles=SymbolRoleSet(), ArrayRef< SymbolRelation > Relations=std::nullopt, const DeclContext *DC=nullptr)
 
bool handleReference (const NamedDecl *D, SourceLocation Loc, const NamedDecl *Parent, const DeclContext *DC, SymbolRoleSet Roles=SymbolRoleSet(), ArrayRef< SymbolRelation > Relations=std::nullopt, const Expr *RefE=nullptr)
 
void handleMacroDefined (const IdentifierInfo &Name, SourceLocation Loc, const MacroInfo &MI)
 
void handleMacroUndefined (const IdentifierInfo &Name, SourceLocation Loc, const MacroInfo &MI)
 
void handleMacroReference (const IdentifierInfo &Name, SourceLocation Loc, const MacroInfo &MD)
 
bool importedModule (const ImportDecl *ImportD)
 
bool indexDecl (const Decl *D)
 
void indexTagDecl (const TagDecl *D, ArrayRef< SymbolRelation > Relations=std::nullopt)
 
void indexTypeSourceInfo (TypeSourceInfo *TInfo, const NamedDecl *Parent, const DeclContext *DC=nullptr, bool isBase=false, bool isIBType=false)
 
void indexTypeLoc (TypeLoc TL, const NamedDecl *Parent, const DeclContext *DC=nullptr, bool isBase=false, bool isIBType=false)
 
void indexNestedNameSpecifierLoc (NestedNameSpecifierLoc NNS, const NamedDecl *Parent, const DeclContext *DC=nullptr)
 
bool indexDeclContext (const DeclContext *DC)
 
void indexBody (const Stmt *S, const NamedDecl *Parent, const DeclContext *DC=nullptr)
 
bool indexTopLevelDecl (const Decl *D)
 
bool indexDeclGroupRef (DeclGroupRef DG)
 

Static Public Member Functions

static bool isTemplateImplicitInstantiation (const Decl *D)
 

Detailed Description

Definition at line 38 of file IndexingContext.h.

Constructor & Destructor Documentation

◆ IndexingContext()

clang::index::IndexingContext::IndexingContext ( IndexingOptions  IndexOpts,
IndexDataConsumer DataConsumer 
)
inline

Definition at line 44 of file IndexingContext.h.

Member Function Documentation

◆ getDataConsumer()

IndexDataConsumer & clang::index::IndexingContext::getDataConsumer ( )
inline

Definition at line 48 of file IndexingContext.h.

◆ getIndexOpts()

const IndexingOptions & clang::index::IndexingContext::getIndexOpts ( ) const
inline

Definition at line 47 of file IndexingContext.h.

◆ getLangOpts()

const LangOptions & IndexingContext::getLangOpts ( ) const

Definition at line 32 of file IndexingContext.cpp.

References clang::ASTContext::getLangOpts().

◆ handleDecl() [1/2]

bool IndexingContext::handleDecl ( const Decl D,
SourceLocation  Loc,
SymbolRoleSet  Roles = SymbolRoleSet(),
ArrayRef< SymbolRelation Relations = std::nullopt,
const DeclContext DC = nullptr 
)

Definition at line 58 of file IndexingContext.cpp.

References clang::Decl::getDeclContext().

◆ handleDecl() [2/2]

bool IndexingContext::handleDecl ( const Decl D,
SymbolRoleSet  Roles = SymbolRoleSet(),
ArrayRef< SymbolRelation Relations = std::nullopt 
)

Definition at line 52 of file IndexingContext.cpp.

References clang::Decl::getLocation(), and handleDecl().

Referenced by handleDecl(), and indexTagDecl().

◆ handleMacroDefined()

void IndexingContext::handleMacroDefined ( const IdentifierInfo Name,
SourceLocation  Loc,
const MacroInfo MI 
)

◆ handleMacroReference()

void IndexingContext::handleMacroReference ( const IdentifierInfo Name,
SourceLocation  Loc,
const MacroInfo MD 
)

◆ handleMacroUndefined()

void IndexingContext::handleMacroUndefined ( const IdentifierInfo Name,
SourceLocation  Loc,
const MacroInfo MI 
)

◆ handleReference()

bool IndexingContext::handleReference ( const NamedDecl D,
SourceLocation  Loc,
const NamedDecl Parent,
const DeclContext DC,
SymbolRoleSet  Roles = SymbolRoleSet(),
ArrayRef< SymbolRelation Relations = std::nullopt,
const Expr RefE = nullptr 
)

◆ importedModule()

bool IndexingContext::importedModule ( const ImportDecl ImportD)

◆ indexBody()

void IndexingContext::indexBody ( const Stmt S,
const NamedDecl Parent,
const DeclContext DC = nullptr 
)

Definition at line 512 of file IndexBody.cpp.

References Parent.

◆ indexDecl()

bool IndexingContext::indexDecl ( const Decl D)

◆ indexDeclContext()

bool IndexingContext::indexDeclContext ( const DeclContext DC)

Definition at line 793 of file IndexDecl.cpp.

References clang::DeclContext::decls(), and indexDecl().

Referenced by indexDecl(), and indexTagDecl().

◆ indexDeclGroupRef()

bool IndexingContext::indexDeclGroupRef ( DeclGroupRef  DG)

◆ indexNestedNameSpecifierLoc()

void IndexingContext::indexNestedNameSpecifierLoc ( NestedNameSpecifierLoc  NNS,
const NamedDecl Parent,
const DeclContext DC = nullptr 
)

◆ indexTagDecl()

void IndexingContext::indexTagDecl ( const TagDecl D,
ArrayRef< SymbolRelation Relations = std::nullopt 
)

◆ indexTopLevelDecl()

bool IndexingContext::indexTopLevelDecl ( const Decl D)

◆ indexTypeLoc()

void IndexingContext::indexTypeLoc ( TypeLoc  TL,
const NamedDecl Parent,
const DeclContext DC = nullptr,
bool  isBase = false,
bool  isIBType = false 
)

Definition at line 256 of file IndexTypeSourceInfo.cpp.

References clang::TypeLoc::isNull(), and Parent.

Referenced by indexNestedNameSpecifierLoc(), and indexTypeSourceInfo().

◆ indexTypeSourceInfo()

void IndexingContext::indexTypeSourceInfo ( TypeSourceInfo TInfo,
const NamedDecl Parent,
const DeclContext DC = nullptr,
bool  isBase = false,
bool  isIBType = false 
)

◆ isTemplateImplicitInstantiation()

bool IndexingContext::isTemplateImplicitInstantiation ( const Decl D)
static

◆ setASTContext()

void clang::index::IndexingContext::setASTContext ( ASTContext ctx)
inline

◆ shouldIndex()

bool IndexingContext::shouldIndex ( const Decl D)

Definition at line 28 of file IndexingContext.cpp.

References isGeneratedDecl().

Referenced by indexTagDecl().

◆ shouldIndexFunctionLocalSymbols()

bool IndexingContext::shouldIndexFunctionLocalSymbols ( ) const

◆ shouldIndexImplicitInstantiation()

bool IndexingContext::shouldIndexImplicitInstantiation ( ) const

Definition at line 40 of file IndexingContext.cpp.

References clang::index::IndexingOptions::IndexImplicitInstantiation.

Referenced by indexDecl().

◆ shouldIndexParametersInDeclarations()

bool IndexingContext::shouldIndexParametersInDeclarations ( ) const

◆ shouldIndexTemplateParameters()

bool IndexingContext::shouldIndexTemplateParameters ( ) const

◆ shouldSuppressRefs()

bool clang::index::IndexingContext::shouldSuppressRefs ( ) const
inline

Definition at line 56 of file IndexingContext.h.


The documentation for this class was generated from the following files: