clang
3.9.0
|
#include <IndexingContext.h>
Static Public Member Functions | |
static bool | isFunctionLocalDecl (const Decl *D) |
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.
bool IndexingContext::handleDecl | ( | const Decl * | D, |
SymbolRoleSet | Roles = SymbolRoleSet() , |
||
ArrayRef< SymbolRelation > | Relations = None |
||
) |
Definition at line 24 of file IndexingContext.cpp.
Referenced by indexTagDecl().
bool IndexingContext::handleDecl | ( | const Decl * | D, |
SourceLocation | Loc, | ||
SymbolRoleSet | Roles = SymbolRoleSet() , |
||
ArrayRef< SymbolRelation > | Relations = None , |
||
const DeclContext * | DC = nullptr |
||
) |
Definition at line 32 of file IndexingContext.cpp.
bool IndexingContext::handleReference | ( | const NamedDecl * | D, |
SourceLocation | Loc, | ||
const NamedDecl * | Parent, | ||
const DeclContext * | DC, | ||
SymbolRoleSet | Roles, | ||
ArrayRef< SymbolRelation > | Relations = None , |
||
const Expr * | RefE = nullptr , |
||
const Decl * | RefD = nullptr |
||
) |
Definition at line 43 of file IndexingContext.cpp.
References isFunctionLocalDecl(), and shouldIndexFunctionLocalSymbols().
Referenced by indexNestedNameSpecifierLoc().
bool IndexingContext::importedModule | ( | const ImportDecl * | ImportD | ) |
Definition at line 60 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::SourceManager::getSLocEntry(), clang::ASTContext::getSourceManager(), clang::index::IndexDataConsumer::handleModuleOccurence(), clang::index::Implicit, clang::SrcMgr::SLocEntry::isFile(), clang::FileID::isInvalid(), clang::SourceLocation::isInvalid(), clang::index::IndexingOptions::None, SM, and clang::index::IndexingOptions::SystemSymbolFilter.
void IndexingContext::indexBody | ( | const Stmt * | S, |
const NamedDecl * | Parent, | ||
const DeclContext * | DC = nullptr |
||
) |
Definition at line 351 of file IndexBody.cpp.
Definition at line 414 of file IndexDecl.cpp.
bool IndexingContext::indexDeclContext | ( | const DeclContext * | DC | ) |
Definition at line 432 of file IndexDecl.cpp.
References clang::DeclContext::decls(), and I.
Referenced by indexTagDecl().
bool IndexingContext::indexDeclGroupRef | ( | DeclGroupRef | DG | ) |
Definition at line 449 of file IndexDecl.cpp.
References clang::DeclGroupRef::begin(), E, clang::DeclGroupRef::end(), and I.
void IndexingContext::indexNestedNameSpecifierLoc | ( | NestedNameSpecifierLoc | NNS, |
const NamedDecl * | Parent, | ||
const DeclContext * | DC = nullptr |
||
) |
Definition at line 152 of file IndexTypeSourceInfo.cpp.
References clang::NestedNameSpecifier::getAsNamespace(), clang::NestedNameSpecifier::getAsNamespaceAlias(), clang::SourceRange::getBegin(), clang::NestedNameSpecifier::getKind(), clang::NestedNameSpecifierLoc::getNestedNameSpecifier(), clang::NestedNameSpecifierLoc::getPrefix(), clang::NestedNameSpecifierLoc::getSourceRange(), clang::NestedNameSpecifierLoc::getTypeLoc(), clang::NestedNameSpecifier::Global, handleReference(), clang::NestedNameSpecifier::Identifier, indexTypeLoc(), clang::NestedNameSpecifier::Namespace, clang::NestedNameSpecifier::NamespaceAlias, clang::NestedNameSpecifier::Super, clang::NestedNameSpecifier::TypeSpec, and clang::NestedNameSpecifier::TypeSpecWithTemplate.
Referenced by indexTagDecl().
void IndexingContext::indexTagDecl | ( | const TagDecl * | D | ) |
Definition at line 187 of file IndexTypeSourceInfo.cpp.
References clang::TagDecl::getQualifierLoc(), handleDecl(), I, indexDeclContext(), indexNestedNameSpecifierLoc(), indexTypeSourceInfo(), isFunctionLocalDecl(), clang::TagDecl::isThisDeclarationADefinition(), and shouldIndexFunctionLocalSymbols().
Definition at line 439 of file IndexDecl.cpp.
Referenced by topLevelDeclVisitor().
void IndexingContext::indexTypeLoc | ( | TypeLoc | TL, |
const NamedDecl * | Parent, | ||
const DeclContext * | DC = nullptr , |
||
bool | isBase = false |
||
) |
Definition at line 140 of file IndexTypeSourceInfo.cpp.
References clang::TypeLoc::isNull().
Referenced by indexNestedNameSpecifierLoc(), and indexTypeSourceInfo().
void IndexingContext::indexTypeSourceInfo | ( | TypeSourceInfo * | TInfo, |
const NamedDecl * | Parent, | ||
const DeclContext * | DC = nullptr , |
||
bool | isBase = false |
||
) |
Definition at line 130 of file IndexTypeSourceInfo.cpp.
References clang::TypeSourceInfo::getTypeLoc(), indexTypeLoc(), and clang::TypeLoc::isNull().
Referenced by indexTagDecl().
Definition at line 100 of file IndexingContext.cpp.
References clang::ExternalLinkage, clang::InternalLinkage, clang::NoLinkage, clang::UniqueExternalLinkage, and clang::VisibleNoLinkage.
Referenced by handleReference(), and indexTagDecl().
Definition at line 128 of file IndexingContext.cpp.
References clang::TSK_ExplicitInstantiationDeclaration, clang::TSK_ExplicitInstantiationDefinition, clang::TSK_ExplicitSpecialization, clang::TSK_ImplicitInstantiation, and clang::TSK_Undeclared.
|
inline |
Definition at line 49 of file IndexingContext.h.
Referenced by clang::index::indexASTUnit().
bool IndexingContext::shouldIndexFunctionLocalSymbols | ( | ) | const |
Definition at line 20 of file IndexingContext.cpp.
References clang::index::IndexingOptions::IndexFunctionLocals.
Referenced by handleReference(), and indexTagDecl().
|
inline |
Definition at line 57 of file IndexingContext.h.
|
inline |
Definition at line 51 of file IndexingContext.h.