clang  6.0.0svn
Public Member Functions | Static Public Member Functions | List of all members
clang::index::IndexingContext Class Reference

#include "/opt/doxygen-docs/src/llvm/tools/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 shouldIndexImplicitTemplateInsts () const
 
bool handleDecl (const Decl *D, SymbolRoleSet Roles=SymbolRoleSet(), ArrayRef< SymbolRelation > Relations=None)
 
bool handleDecl (const Decl *D, SourceLocation Loc, SymbolRoleSet Roles=SymbolRoleSet(), ArrayRef< SymbolRelation > Relations=None, const DeclContext *DC=nullptr)
 
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)
 
bool importedModule (const ImportDecl *ImportD)
 
bool indexDecl (const Decl *D)
 
void indexTagDecl (const TagDecl *D, ArrayRef< SymbolRelation > Relations=None)
 
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 37 of file IndexingContext.h.

Constructor & Destructor Documentation

◆ IndexingContext()

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

Definition at line 43 of file IndexingContext.h.

Member Function Documentation

◆ getDataConsumer()

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

Definition at line 47 of file IndexingContext.h.

◆ getIndexOpts()

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

Definition at line 46 of file IndexingContext.h.

◆ getLangOpts()

const LangOptions & IndexingContext::getLangOpts ( ) const

Definition at line 31 of file IndexingContext.cpp.

References clang::ASTContext::getLangOpts().

Referenced by setASTContext().

◆ handleDecl() [1/2]

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

Definition at line 39 of file IndexingContext.cpp.

References clang::Decl::getLocation().

Referenced by shouldIndexImplicitTemplateInsts().

◆ handleDecl() [2/2]

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

Definition at line 45 of file IndexingContext.cpp.

References clang::Decl::getDeclContext().

◆ handleReference()

bool IndexingContext::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 
)

◆ importedModule()

bool IndexingContext::importedModule ( const ImportDecl ImportD)

◆ indexBody()

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

Definition at line 434 of file IndexBody.cpp.

References clang::Decl::getLexicalDeclContext().

Referenced by shouldIndexImplicitTemplateInsts().

◆ indexDecl()

bool IndexingContext::indexDecl ( const Decl D)

Definition at line 725 of file IndexDecl.cpp.

References clang::Decl::isImplicit().

Referenced by shouldIndexImplicitTemplateInsts().

◆ indexDeclContext()

bool IndexingContext::indexDeclContext ( const DeclContext DC)

Definition at line 743 of file IndexDecl.cpp.

Referenced by shouldIndexImplicitTemplateInsts().

◆ indexDeclGroupRef()

bool IndexingContext::indexDeclGroupRef ( DeclGroupRef  DG)

Definition at line 760 of file IndexDecl.cpp.

◆ indexNestedNameSpecifierLoc()

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

◆ indexTagDecl()

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

◆ 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 
)

◆ 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 27 of file IndexingContext.cpp.

References isGeneratedDecl().

Referenced by setASTContext().

◆ shouldIndexFunctionLocalSymbols()

bool IndexingContext::shouldIndexFunctionLocalSymbols ( ) const

◆ shouldIndexImplicitTemplateInsts()

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

◆ shouldSuppressRefs()

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

Definition at line 55 of file IndexingContext.h.

References shouldIndexFunctionLocalSymbols().


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