clang  14.0.0git
Functions
IndexingContext.cpp File Reference
#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"
Include dependency graph for IndexingContext.cpp:

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. More...
 
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()

static const Decl* adjustParent ( const Decl Parent)
static

Definition at line 279 of file IndexingContext.cpp.

References Parent, and shouldSkipNamelessDecl().

◆ adjustTemplateImplicitInstantiation()

static const Decl* adjustTemplateImplicitInstantiation ( const Decl D)
static

◆ getCanonicalDecl()

static const Decl* getCanonicalDecl ( const Decl D)
static

◆ getDeclContextForTemplateInstationPattern()

static const CXXRecordDecl* getDeclContextForTemplateInstationPattern ( const Decl D)
static

◆ isDeclADefinition()

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

Definition at line 249 of file IndexingContext.cpp.

◆ isGeneratedDecl()

static bool isGeneratedDecl ( const Decl D)
static

◆ reportModuleReferences()

static void reportModuleReferences ( const Module Mod,
ArrayRef< SourceLocation IdLocs,
const ImportDecl ImportD,
IndexDataConsumer DataConsumer 
)
static

◆ shouldReportOccurrenceForSystemDeclOnlyMode()

static bool shouldReportOccurrenceForSystemDeclOnlyMode ( bool  IsRef,
SymbolRoleSet  Roles,
ArrayRef< SymbolRelation Relations 
)
static

◆ shouldSkipNamelessDecl()

static bool shouldSkipNamelessDecl ( const NamedDecl ND)
static

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

Definition at line 274 of file IndexingContext.cpp.

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

Referenced by adjustParent().