clang
9.0.0
|
#include "/work/llvm-www-releases/9.0.0/docsbuild/llvm.src/tools/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 31 of file IndexingContext.cpp.
References clang::ASTContext::getLangOpts().
Referenced by setASTContext().
bool IndexingContext::handleDecl | ( | const Decl * | D, |
SymbolRoleSet | Roles = SymbolRoleSet() , |
||
ArrayRef< SymbolRelation > | Relations = None |
||
) |
Definition at line 51 of file IndexingContext.cpp.
References clang::Decl::getLocation().
Referenced by shouldSuppressRefs().
bool IndexingContext::handleDecl | ( | const Decl * | D, |
SourceLocation | Loc, | ||
SymbolRoleSet | Roles = SymbolRoleSet() , |
||
ArrayRef< SymbolRelation > | Relations = None , |
||
const DeclContext * | DC = nullptr |
||
) |
Definition at line 57 of file IndexingContext.cpp.
References clang::Decl::getDeclContext().
void IndexingContext::handleMacroDefined | ( | const IdentifierInfo & | Name, |
SourceLocation | Loc, | ||
const MacroInfo & | MI | ||
) |
Definition at line 448 of file IndexingContext.cpp.
Referenced by shouldSuppressRefs().
void IndexingContext::handleMacroReference | ( | const IdentifierInfo & | Name, |
SourceLocation | Loc, | ||
const MacroInfo & | MD | ||
) |
Definition at line 462 of file IndexingContext.cpp.
void IndexingContext::handleMacroUndefined | ( | const IdentifierInfo & | Name, |
SourceLocation | Loc, | ||
const MacroInfo & | MI | ||
) |
Definition at line 455 of file IndexingContext.cpp.
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 |
||
) |
Definition at line 73 of file IndexingContext.cpp.
References clang::index::isFunctionLocalSymbol(), shouldIndexFunctionLocalSymbols(), and shouldIndexTemplateParameters().
Referenced by shouldSuppressRefs().
bool IndexingContext::importedModule | ( | const ImportDecl * | ImportD | ) |
Definition at line 106 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::SourceManager::getFileID(), clang::SourceManager::getFileLoc(), clang::ImportDecl::getIdentifierLocs(), clang::ImportDecl::getImportedModule(), clang::Decl::getLocation(), clang::SourceManager::getSLocEntry(), clang::ASTContext::getSourceManager(), clang::index::IndexDataConsumer::handleModuleOccurence(), clang::index::Implicit, clang::SrcMgr::SLocEntry::isFile(), clang::Decl::isImplicit(), clang::FileID::isInvalid(), clang::Decl::isInvalidDecl(), 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 471 of file IndexBody.cpp.
References clang::Decl::getLexicalDeclContext().
Definition at line 730 of file IndexDecl.cpp.
References clang::Decl::isImplicit().
bool IndexingContext::indexDeclContext | ( | const DeclContext * | DC | ) |
Definition at line 748 of file IndexDecl.cpp.
References clang::DeclContext::decls().
bool IndexingContext::indexDeclGroupRef | ( | DeclGroupRef | DG | ) |
Definition at line 765 of file IndexDecl.cpp.
References clang::DeclGroupRef::begin(), and clang::DeclGroupRef::end().
void IndexingContext::indexNestedNameSpecifierLoc | ( | NestedNameSpecifierLoc | NNS, |
const NamedDecl * | Parent, | ||
const DeclContext * | DC = nullptr |
||
) |
Definition at line 233 of file IndexTypeSourceInfo.cpp.
References clang::NestedNameSpecifier::getAsNamespace(), clang::NestedNameSpecifier::getAsNamespaceAlias(), clang::NestedNameSpecifier::getKind(), clang::Decl::getLexicalDeclContext(), clang::NestedNameSpecifierLoc::getLocalBeginLoc(), clang::NestedNameSpecifierLoc::getNestedNameSpecifier(), clang::NestedNameSpecifierLoc::getPrefix(), clang::NestedNameSpecifierLoc::getTypeLoc(), clang::NestedNameSpecifier::Global, clang::NestedNameSpecifier::Identifier, clang::NestedNameSpecifier::Namespace, clang::NestedNameSpecifier::NamespaceAlias, Parent, clang::NestedNameSpecifier::Super, clang::NestedNameSpecifier::TypeSpec, and clang::NestedNameSpecifier::TypeSpecWithTemplate.
void IndexingContext::indexTagDecl | ( | const TagDecl * | D, |
ArrayRef< SymbolRelation > | Relations = None |
||
) |
Definition at line 268 of file IndexTypeSourceInfo.cpp.
References clang::TagDecl::getQualifierLoc(), clang::index::isFunctionLocalSymbol(), and clang::TagDecl::isThisDeclarationADefinition().
Definition at line 755 of file IndexDecl.cpp.
References clang::Decl::getLocation(), and clang::SourceLocation::isInvalid().
Referenced by 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 220 of file IndexTypeSourceInfo.cpp.
References clang::Decl::getLexicalDeclContext(), and clang::TypeLoc::isNull().
void IndexingContext::indexTypeSourceInfo | ( | TypeSourceInfo * | TInfo, |
const NamedDecl * | Parent, | ||
const DeclContext * | DC = nullptr , |
||
bool | isBase = false , |
||
bool | isIBType = false |
||
) |
Definition at line 209 of file IndexTypeSourceInfo.cpp.
References clang::TypeSourceInfo::getTypeLoc(), clang::TypeLoc::isNull(), and Parent.
Definition at line 150 of file IndexingContext.cpp.
References clang::Decl::getDeclContext(), Parent, clang::TSK_ExplicitInstantiationDeclaration, clang::TSK_ExplicitInstantiationDefinition, clang::TSK_ExplicitSpecialization, clang::TSK_ImplicitInstantiation, and clang::TSK_Undeclared.
Referenced by shouldReportOccurrenceForSystemDeclOnlyMode(), and shouldSuppressRefs().
|
inline |
Definition at line 50 of file IndexingContext.h.
References getLangOpts(), and shouldIndex().
Referenced by clang::index::indexASTUnit(), clang::index::indexModuleFile(), and clang::index::indexTopLevelDecls().
Definition at line 27 of file IndexingContext.cpp.
References isGeneratedDecl().
Referenced by setASTContext().
bool IndexingContext::shouldIndexFunctionLocalSymbols | ( | ) | const |
Definition at line 35 of file IndexingContext.cpp.
References clang::index::IndexingOptions::IndexFunctionLocals.
Referenced by handleReference(), and shouldSuppressRefs().
bool IndexingContext::shouldIndexImplicitInstantiation | ( | ) | const |
Definition at line 39 of file IndexingContext.cpp.
References clang::index::IndexingOptions::IndexImplicitInstantiation.
Referenced by shouldSuppressRefs().
bool IndexingContext::shouldIndexParametersInDeclarations | ( | ) | const |
Definition at line 43 of file IndexingContext.cpp.
References clang::index::IndexingOptions::IndexParametersInDeclarations.
Referenced by shouldSuppressRefs().
bool IndexingContext::shouldIndexTemplateParameters | ( | ) | const |
Definition at line 47 of file IndexingContext.cpp.
References clang::index::IndexingOptions::IndexTemplateParameters.
Referenced by handleReference(), and shouldSuppressRefs().
|
inline |
Definition at line 56 of file IndexingContext.h.
References handleDecl(), handleMacroDefined(), handleReference(), isTemplateImplicitInstantiation(), clang::index::None, Parent, shouldIndexFunctionLocalSymbols(), shouldIndexImplicitInstantiation(), shouldIndexParametersInDeclarations(), and shouldIndexTemplateParameters().