clang
6.0.0
|
#include "/work/www-prereleases/6.0.0/rc2/docsbuild/llvm.src/tools/clang/lib/Index/IndexingContext.h"
Static Public Member Functions | |
static bool | isTemplateImplicitInstantiation (const Decl *D) |
Definition at line 37 of file IndexingContext.h.
|
inline |
Definition at line 43 of file IndexingContext.h.
|
inline |
Definition at line 47 of file IndexingContext.h.
|
inline |
Definition at line 46 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 39 of file IndexingContext.cpp.
References clang::Decl::getLocation().
Referenced by shouldIndexImplicitTemplateInsts().
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().
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 61 of file IndexingContext.cpp.
References clang::index::isFunctionLocalSymbol(), and shouldIndexFunctionLocalSymbols().
Referenced by shouldIndexImplicitTemplateInsts().
bool IndexingContext::importedModule | ( | const ImportDecl * | ImportD | ) |
Definition at line 78 of file IndexingContext.cpp.
References clang::index::IndexingOptions::All, clang::SrcMgr::C_User, clang::index::Declaration, clang::index::IndexingOptions::DeclarationsOnly, clang::SourceManager::getDecomposedLoc(), clang::SrcMgr::SLocEntry::getFile(), clang::SrcMgr::FileInfo::getFileCharacteristic(), clang::SourceManager::getFileLoc(), clang::ImportDecl::getIdentifierLocs(), 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::SourceLocation::isInvalid(), clang::index::IndexingOptions::None, SM, and clang::index::IndexingOptions::SystemSymbolFilter.
Referenced by shouldIndexImplicitTemplateInsts().
void IndexingContext::indexBody | ( | const Stmt * | S, |
const NamedDecl * | Parent, | ||
const DeclContext * | DC = nullptr |
||
) |
Definition at line 445 of file IndexBody.cpp.
References clang::Decl::getLexicalDeclContext().
Referenced by shouldIndexImplicitTemplateInsts().
Definition at line 722 of file IndexDecl.cpp.
References clang::Decl::isImplicit().
Referenced by shouldIndexImplicitTemplateInsts().
bool IndexingContext::indexDeclContext | ( | const DeclContext * | DC | ) |
Definition at line 740 of file IndexDecl.cpp.
Referenced by shouldIndexImplicitTemplateInsts().
bool IndexingContext::indexDeclGroupRef | ( | DeclGroupRef | DG | ) |
Definition at line 757 of file IndexDecl.cpp.
void IndexingContext::indexNestedNameSpecifierLoc | ( | NestedNameSpecifierLoc | NNS, |
const NamedDecl * | Parent, | ||
const DeclContext * | DC = nullptr |
||
) |
Definition at line 213 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.
Referenced by shouldIndexImplicitTemplateInsts().
void IndexingContext::indexTagDecl | ( | const TagDecl * | D, |
ArrayRef< SymbolRelation > | Relations = None |
||
) |
Definition at line 248 of file IndexTypeSourceInfo.cpp.
References clang::TagDecl::getQualifierLoc(), clang::index::isFunctionLocalSymbol(), and clang::TagDecl::isThisDeclarationADefinition().
Referenced by shouldIndexImplicitTemplateInsts().
Definition at line 747 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 200 of file IndexTypeSourceInfo.cpp.
References clang::Decl::getLexicalDeclContext(), and clang::TypeLoc::isNull().
Referenced by shouldIndexImplicitTemplateInsts().
void IndexingContext::indexTypeSourceInfo | ( | TypeSourceInfo * | TInfo, |
const NamedDecl * | Parent, | ||
const DeclContext * | DC = nullptr , |
||
bool | isBase = false , |
||
bool | isIBType = false |
||
) |
Definition at line 189 of file IndexTypeSourceInfo.cpp.
References clang::TypeSourceInfo::getTypeLoc(), clang::TypeLoc::isNull(), and Parent.
Referenced by shouldIndexImplicitTemplateInsts().
Definition at line 118 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 shouldIndexImplicitTemplateInsts(), and shouldReportOccurrenceForSystemDeclOnlyMode().
|
inline |
Definition at line 49 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().
|
inline |
Definition at line 61 of file IndexingContext.h.
References handleDecl(), handleReference(), importedModule(), indexBody(), indexDecl(), indexDeclContext(), indexNestedNameSpecifierLoc(), indexTagDecl(), indexTypeLoc(), indexTypeSourceInfo(), isTemplateImplicitInstantiation(), clang::index::None, and Parent.
|
inline |
Definition at line 55 of file IndexingContext.h.
References shouldIndexFunctionLocalSymbols().