clang 20.0.0git
|
#include "/home/buildbot/as-worker-4/publish-doxygen-docs/llvm-project/clang/lib/Index/IndexingContext.h"
Static Public Member Functions | |
static bool | isTemplateImplicitInstantiation (const Decl *D) |
Definition at line 38 of file IndexingContext.h.
|
inline |
Definition at line 44 of file IndexingContext.h.
|
inline |
Definition at line 48 of file IndexingContext.h.
|
inline |
Definition at line 47 of file IndexingContext.h.
const LangOptions & IndexingContext::getLangOpts | ( | ) | const |
Definition at line 32 of file IndexingContext.cpp.
References clang::ASTContext::getLangOpts().
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 D, clang::Decl::getDeclContext(), and Loc.
bool IndexingContext::handleDecl | ( | const Decl * | D, |
SymbolRoleSet | Roles = SymbolRoleSet() , |
||
ArrayRef< SymbolRelation > | Relations = std::nullopt |
||
) |
Definition at line 52 of file IndexingContext.cpp.
References D, clang::Decl::getLocation(), and handleDecl().
Referenced by handleDecl(), and indexTagDecl().
void IndexingContext::handleMacroDefined | ( | const IdentifierInfo & | Name, |
SourceLocation | Loc, | ||
const MacroInfo & | MI | ||
) |
Definition at line 452 of file IndexingContext.cpp.
References clang::index::Definition, clang::index::IndexDataConsumer::handleMacroOccurrence(), and Loc.
void IndexingContext::handleMacroReference | ( | const IdentifierInfo & | Name, |
SourceLocation | Loc, | ||
const MacroInfo & | MD | ||
) |
Definition at line 470 of file IndexingContext.cpp.
References clang::index::IndexDataConsumer::handleMacroOccurrence(), Loc, and clang::index::Reference.
void IndexingContext::handleMacroUndefined | ( | const IdentifierInfo & | Name, |
SourceLocation | Loc, | ||
const MacroInfo & | MI | ||
) |
Definition at line 461 of file IndexingContext.cpp.
References clang::index::IndexDataConsumer::handleMacroOccurrence(), Loc, and clang::index::Undefinition.
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 |
||
) |
Definition at line 74 of file IndexingContext.cpp.
References D, clang::index::isFunctionLocalSymbol(), Loc, Parent, shouldIndexFunctionLocalSymbols(), and shouldIndexTemplateParameters().
Referenced by indexNestedNameSpecifierLoc().
bool IndexingContext::importedModule | ( | const ImportDecl * | ImportD | ) |
Definition at line 104 of file IndexingContext.cpp.
References clang::index::IndexingOptions::All, clang::SrcMgr::C_User, clang::index::Declaration, clang::index::IndexingOptions::DeclarationsOnly, clang::SrcMgr::SLocEntry::getFile(), clang::SrcMgr::FileInfo::getFileCharacteristic(), clang::ImportDecl::getIdentifierLocs(), clang::ImportDecl::getImportedModule(), clang::Decl::getLocation(), clang::ASTContext::getSourceManager(), clang::index::IndexDataConsumer::handleModuleOccurrence(), clang::index::Implicit, clang::Invalid, clang::SrcMgr::SLocEntry::isFile(), clang::Decl::isImplicit(), clang::FileID::isInvalid(), clang::Decl::isInvalidDecl(), Loc, clang::index::IndexingOptions::None, clang::Module::Parent, reportModuleReferences(), SM, and clang::index::IndexingOptions::SystemSymbolFilter.
void IndexingContext::indexBody | ( | const Stmt * | S, |
const NamedDecl * | Parent, | ||
const DeclContext * | DC = nullptr |
||
) |
Definition at line 512 of file IndexBody.cpp.
References Parent.
Definition at line 780 of file IndexDecl.cpp.
References D, indexDeclContext(), clang::Decl::isImplicit(), isTemplateImplicitInstantiation(), and shouldIndexImplicitInstantiation().
Referenced by indexDeclContext(), and indexTopLevelDecl().
bool IndexingContext::indexDeclContext | ( | const DeclContext * | DC | ) |
Definition at line 798 of file IndexDecl.cpp.
References clang::DeclContext::decls(), and indexDecl().
Referenced by indexDecl(), and indexTagDecl().
bool IndexingContext::indexDeclGroupRef | ( | DeclGroupRef | DG | ) |
Definition at line 818 of file IndexDecl.cpp.
References clang::DeclGroupRef::begin(), E, clang::DeclGroupRef::end(), and indexTopLevelDecl().
void IndexingContext::indexNestedNameSpecifierLoc | ( | NestedNameSpecifierLoc | NNS, |
const NamedDecl * | Parent, | ||
const DeclContext * | DC = nullptr |
||
) |
Definition at line 269 of file IndexTypeSourceInfo.cpp.
References clang::NestedNameSpecifier::getAsNamespace(), clang::NestedNameSpecifier::getAsNamespaceAlias(), clang::NestedNameSpecifier::getKind(), clang::NestedNameSpecifierLoc::getLocalBeginLoc(), clang::NestedNameSpecifierLoc::getNestedNameSpecifier(), clang::NestedNameSpecifierLoc::getPrefix(), clang::NestedNameSpecifierLoc::getTypeLoc(), clang::NestedNameSpecifier::Global, handleReference(), clang::NestedNameSpecifier::Identifier, indexNestedNameSpecifierLoc(), indexTypeLoc(), Loc, clang::NestedNameSpecifier::Namespace, clang::NestedNameSpecifier::NamespaceAlias, Parent, clang::NestedNameSpecifier::Super, clang::NestedNameSpecifier::TypeSpec, and clang::NestedNameSpecifier::TypeSpecWithTemplate.
Referenced by indexNestedNameSpecifierLoc(), and indexTagDecl().
void IndexingContext::indexTagDecl | ( | const TagDecl * | D, |
ArrayRef< SymbolRelation > | Relations = std::nullopt |
||
) |
Definition at line 304 of file IndexTypeSourceInfo.cpp.
References D, handleDecl(), indexDeclContext(), indexNestedNameSpecifierLoc(), indexTypeSourceInfo(), clang::index::isFunctionLocalSymbol(), shouldIndex(), and shouldIndexFunctionLocalSymbols().
Definition at line 805 of file IndexDecl.cpp.
References D, clang::Decl::getLocation(), indexDecl(), clang::SourceLocation::isInvalid(), and clang::index::IndexingOptions::ShouldTraverseDecl.
Referenced by indexDeclGroupRef(), clang::index::indexModuleFile(), clang::index::indexTopLevelDecls(), and topLevelDeclVisitor().
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().
void IndexingContext::indexTypeSourceInfo | ( | TypeSourceInfo * | TInfo, |
const NamedDecl * | Parent, | ||
const DeclContext * | DC = nullptr , |
||
bool | isBase = false , |
||
bool | isIBType = false |
||
) |
Definition at line 245 of file IndexTypeSourceInfo.cpp.
References clang::TypeSourceInfo::getTypeLoc(), indexTypeLoc(), clang::TypeLoc::isNull(), and Parent.
Referenced by indexTagDecl().
Definition at line 148 of file IndexingContext.cpp.
References D, clang::Decl::getDeclContext(), isTemplateImplicitInstantiation(), Parent, clang::TSK_ExplicitInstantiationDeclaration, clang::TSK_ExplicitInstantiationDefinition, clang::TSK_ExplicitSpecialization, clang::TSK_ImplicitInstantiation, and clang::TSK_Undeclared.
Referenced by indexDecl(), and isTemplateImplicitInstantiation().
|
inline |
Definition at line 50 of file IndexingContext.h.
Referenced by clang::index::indexASTUnit(), clang::index::indexModuleFile(), and clang::index::indexTopLevelDecls().
Definition at line 28 of file IndexingContext.cpp.
References D, and isGeneratedDecl().
Referenced by indexTagDecl().
bool IndexingContext::shouldIndexFunctionLocalSymbols | ( | ) | const |
Definition at line 36 of file IndexingContext.cpp.
References clang::index::IndexingOptions::IndexFunctionLocals.
Referenced by handleReference(), and indexTagDecl().
bool IndexingContext::shouldIndexImplicitInstantiation | ( | ) | const |
Definition at line 40 of file IndexingContext.cpp.
References clang::index::IndexingOptions::IndexImplicitInstantiation.
Referenced by indexDecl().
bool IndexingContext::shouldIndexParametersInDeclarations | ( | ) | const |
Definition at line 44 of file IndexingContext.cpp.
References clang::index::IndexingOptions::IndexParametersInDeclarations.
bool IndexingContext::shouldIndexTemplateParameters | ( | ) | const |
Definition at line 48 of file IndexingContext.cpp.
References clang::index::IndexingOptions::IndexTemplateParameters.
Referenced by handleReference().
|
inline |
Definition at line 56 of file IndexingContext.h.