clang 20.0.0git
|
#include "IndexingContext.h"
#include "clang/AST/ASTContext.h"
#include "clang/AST/Attr.h"
#include "clang/AST/DeclObjC.h"
#include "clang/AST/DeclTemplate.h"
#include "clang/Basic/SourceLocation.h"
#include "clang/Basic/SourceManager.h"
#include "clang/Index/IndexDataConsumer.h"
Go to the source code of this file.
Functions | |
static bool | isGeneratedDecl (const Decl *D) |
static void | reportModuleReferences (const Module *Mod, ArrayRef< SourceLocation > IdLocs, const ImportDecl *ImportD, IndexDataConsumer &DataConsumer) |
static const CXXRecordDecl * | getDeclContextForTemplateInstationPattern (const Decl *D) |
static const Decl * | adjustTemplateImplicitInstantiation (const Decl *D) |
static bool | isDeclADefinition (const Decl *D, const DeclContext *ContainerDC, ASTContext &Ctx) |
static bool | shouldSkipNamelessDecl (const NamedDecl *ND) |
Whether the given NamedDecl should be skipped because it has no name. | |
static const Decl * | adjustParent (const Decl *Parent) |
static const Decl * | getCanonicalDecl (const Decl *D) |
static bool | shouldReportOccurrenceForSystemDeclOnlyMode (bool IsRef, SymbolRoleSet Roles, ArrayRef< SymbolRelation > Relations) |
Definition at line 274 of file IndexingContext.cpp.
References Parent, and shouldSkipNamelessDecl().
Definition at line 208 of file IndexingContext.cpp.
References D, getDeclContextForTemplateInstationPattern(), and clang::EnumDecl::getInstantiatedFromMemberEnum().
Definition at line 296 of file IndexingContext.cpp.
References D, clang::Decl::getCanonicalDecl(), and clang::Decl::isCanonicalDecl().
Referenced by areSortedAndUniqued(), checkReductionClauses(), clang::ento::CXXInstanceCall::getInitialStackFrameContents(), getPrivateItem(), clang::SemaOpenMP::isOpenMPCapturedDecl(), clang::APValue::Profile(), and clang::SemaOpenMP::setOpenMPCaptureKind().
|
static |
Definition at line 199 of file IndexingContext.cpp.
References D, clang::Decl::getDeclContext(), clang::CXXRecordDecl::getInstantiatedFromMemberClass(), and clang::CXXRecordDecl::getTemplateInstantiationPattern().
Referenced by adjustTemplateImplicitInstantiation().
|
static |
Definition at line 247 of file IndexingContext.cpp.
References D.
Definition at line 21 of file IndexingContext.cpp.
References clang::ast_matchers::attr, D, and clang::Decl::getAttr().
Referenced by clang::index::IndexingContext::shouldIndex().
|
static |
Definition at line 92 of file IndexingContext.cpp.
References clang::index::IndexDataConsumer::handleModuleOccurrence(), clang::Module::Parent, clang::index::Reference, and reportModuleReferences().
Referenced by clang::index::IndexingContext::importedModule(), and reportModuleReferences().
|
static |
Definition at line 308 of file IndexingContext.cpp.
References clang::index::AddressOf, clang::index::applyForEachSymbolRoleInterruptible(), clang::index::Call, clang::index::Declaration, clang::index::Definition, clang::index::Dynamic, clang::index::Implicit, clang::index::NameReference, clang::index::Read, clang::index::Reference, clang::index::RelationAccessorOf, clang::index::RelationBaseOf, clang::index::RelationCalledBy, clang::index::RelationChildOf, clang::index::RelationContainedBy, clang::index::RelationExtendedBy, clang::index::RelationIBTypeOf, clang::index::RelationOverrideOf, clang::index::RelationReceivedBy, clang::index::RelationSpecializationOf, clang::index::Undefinition, and clang::index::Write.
Whether the given NamedDecl should be skipped because it has no name.
Definition at line 269 of file IndexingContext.cpp.
References clang::NamedDecl::getDeclName(), and clang::DeclarationName::isEmpty().
Referenced by adjustParent().