clang
8.0.0
|
#include "/work/www-prereleases/8.0.0/rc4/docsbuild/llvm.src/tools/clang/lib/Index/IndexingContext.h"
Static Public Member Functions | |
static bool | isTemplateImplicitInstantiation (const Decl *D) |
Definition at line 39 of file IndexingContext.h.
|
inline |
Definition at line 45 of file IndexingContext.h.
|
inline |
Definition at line 49 of file IndexingContext.h.
|
inline |
Definition at line 48 of file IndexingContext.h.
const LangOptions & IndexingContext::getLangOpts | ( | ) | const |
Definition at line 32 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 44 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 50 of file IndexingContext.cpp.
References clang::Decl::getDeclContext().
void IndexingContext::handleMacroDefined | ( | const IdentifierInfo & | Name, |
SourceLocation | Loc, | ||
const MacroInfo & | MI | ||
) |
Definition at line 438 of file IndexingContext.cpp.
Referenced by shouldSuppressRefs().
void IndexingContext::handleMacroReference | ( | const IdentifierInfo & | Name, |
SourceLocation | Loc, | ||
const MacroInfo & | MD | ||
) |
Definition at line 452 of file IndexingContext.cpp.
void IndexingContext::handleMacroUndefined | ( | const IdentifierInfo & | Name, |
SourceLocation | Loc, | ||
const MacroInfo & | MI | ||
) |
Definition at line 445 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 66 of file IndexingContext.cpp.
References clang::index::isFunctionLocalSymbol(), and shouldIndexFunctionLocalSymbols().
Referenced by shouldSuppressRefs().
bool IndexingContext::importedModule | ( | const ImportDecl * | ImportD | ) |
Definition at line 96 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 472 of file IndexBody.cpp.
References clang::Decl::getLexicalDeclContext().
Definition at line 725 of file IndexDecl.cpp.
References clang::Decl::isImplicit().
bool IndexingContext::indexDeclContext | ( | const DeclContext * | DC | ) |
Definition at line 743 of file IndexDecl.cpp.
References clang::DeclContext::decls().
bool IndexingContext::indexDeclGroupRef | ( | DeclGroupRef | DG | ) |
Definition at line 760 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 215 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 250 of file IndexTypeSourceInfo.cpp.
References clang::TagDecl::getQualifierLoc(), clang::index::isFunctionLocalSymbol(), and clang::TagDecl::isThisDeclarationADefinition().
Definition at line 750 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 202 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 191 of file IndexTypeSourceInfo.cpp.
References clang::TypeSourceInfo::getTypeLoc(), clang::TypeLoc::isNull(), and Parent.
Definition at line 140 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 51 of file IndexingContext.h.
References getLangOpts(), and shouldIndex().
Referenced by clang::index::indexASTUnit(), clang::index::indexModuleFile(), and clang::index::indexTopLevelDecls().
Definition at line 28 of file IndexingContext.cpp.
References isGeneratedDecl().
Referenced by setASTContext().
bool IndexingContext::shouldIndexFunctionLocalSymbols | ( | ) | const |
Definition at line 36 of file IndexingContext.cpp.
References clang::index::IndexingOptions::IndexFunctionLocals.
Referenced by handleReference(), and shouldSuppressRefs().
bool IndexingContext::shouldIndexImplicitInstantiation | ( | ) | const |
Definition at line 40 of file IndexingContext.cpp.
References clang::index::IndexingOptions::IndexImplicitInstantiation.
Referenced by shouldSuppressRefs().
|
inline |
Definition at line 57 of file IndexingContext.h.
References handleDecl(), handleMacroDefined(), handleReference(), isTemplateImplicitInstantiation(), clang::index::None, Parent, shouldIndexFunctionLocalSymbols(), and shouldIndexImplicitInstantiation().