clang 22.0.0git
IndexingContext.cpp File Reference

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 CXXRecordDeclgetDeclContextForTemplateInstationPattern (const Decl *D)
static const DecladjustTemplateImplicitInstantiation (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 DecladjustParent (const Decl *Parent)
static const DeclgetCanonicalDecl (const Decl *D)
static bool shouldReportOccurrenceForSystemDeclOnlyMode (bool IsRef, SymbolRoleSet Roles, ArrayRef< SymbolRelation > Relations)

Function Documentation

◆ adjustParent()

const Decl * adjustParent ( const Decl * Parent)
static

◆ adjustTemplateImplicitInstantiation()

const Decl * adjustTemplateImplicitInstantiation ( const Decl * D)
static

◆ getCanonicalDecl()

◆ getDeclContextForTemplateInstationPattern()

◆ isDeclADefinition()

bool isDeclADefinition ( const Decl * D,
const DeclContext * ContainerDC,
ASTContext & Ctx )
static

Definition at line 259 of file IndexingContext.cpp.

References clang::isa().

◆ isGeneratedDecl()

bool isGeneratedDecl ( const Decl * D)
static

Definition at line 22 of file IndexingContext.cpp.

References clang::Decl::getAttr().

Referenced by clang::index::IndexingContext::shouldIndex().

◆ reportModuleReferences()

◆ shouldReportOccurrenceForSystemDeclOnlyMode()

◆ shouldSkipNamelessDecl()

bool shouldSkipNamelessDecl ( const NamedDecl * ND)
static

Whether the given NamedDecl should be skipped because it has no name.

Definition at line 281 of file IndexingContext.cpp.

References clang::NamedDecl::getDeclName(), clang::isa(), and clang::DeclarationName::isEmpty().

Referenced by adjustParent().