clang  8.0.0svn
Classes | Public Member Functions | Static Public Member Functions | List of all members
clang::ASTDeclReader Class Reference
Inheritance diagram for clang::ASTDeclReader:
Inheritance graph
[legend]
Collaboration diagram for clang::ASTDeclReader:
Collaboration graph
[legend]

Public Member Functions

 ASTDeclReader (ASTReader &Reader, ASTRecordReader &Record, ASTReader::RecordLocation Loc, DeclID thisDeclID, SourceLocation ThisDeclLoc)
 
bool hasPendingBody () const
 Determine whether this declaration has a pending body. More...
 
void ReadFunctionDefinition (FunctionDecl *FD)
 
void Visit (Decl *D)
 
void UpdateDecl (Decl *D, SmallVectorImpl< serialization::DeclID > &)
 
void VisitDecl (Decl *D)
 
void VisitPragmaCommentDecl (PragmaCommentDecl *D)
 
void VisitPragmaDetectMismatchDecl (PragmaDetectMismatchDecl *D)
 
void VisitTranslationUnitDecl (TranslationUnitDecl *TU)
 
void VisitNamedDecl (NamedDecl *ND)
 
void VisitLabelDecl (LabelDecl *LD)
 
void VisitNamespaceDecl (NamespaceDecl *D)
 
void VisitUsingDirectiveDecl (UsingDirectiveDecl *D)
 
void VisitNamespaceAliasDecl (NamespaceAliasDecl *D)
 
void VisitTypeDecl (TypeDecl *TD)
 
RedeclarableResult VisitTypedefNameDecl (TypedefNameDecl *TD)
 
void VisitTypedefDecl (TypedefDecl *TD)
 
void VisitTypeAliasDecl (TypeAliasDecl *TD)
 
void VisitUnresolvedUsingTypenameDecl (UnresolvedUsingTypenameDecl *D)
 
RedeclarableResult VisitTagDecl (TagDecl *TD)
 
void VisitEnumDecl (EnumDecl *ED)
 
RedeclarableResult VisitRecordDeclImpl (RecordDecl *RD)
 
void VisitRecordDecl (RecordDecl *RD)
 
RedeclarableResult VisitCXXRecordDeclImpl (CXXRecordDecl *D)
 
void VisitCXXRecordDecl (CXXRecordDecl *D)
 
RedeclarableResult VisitClassTemplateSpecializationDeclImpl (ClassTemplateSpecializationDecl *D)
 
void VisitClassTemplateSpecializationDecl (ClassTemplateSpecializationDecl *D)
 
void VisitClassTemplatePartialSpecializationDecl (ClassTemplatePartialSpecializationDecl *D)
 
void VisitClassScopeFunctionSpecializationDecl (ClassScopeFunctionSpecializationDecl *D)
 
RedeclarableResult VisitVarTemplateSpecializationDeclImpl (VarTemplateSpecializationDecl *D)
 TODO: Unify with ClassTemplateSpecializationDecl version? May require unifying ClassTemplate(Partial)SpecializationDecl and VarTemplate(Partial)SpecializationDecl with a new data structure Template(Partial)SpecializationDecl, and using Template(Partial)SpecializationDecl as input type. More...
 
void VisitVarTemplateSpecializationDecl (VarTemplateSpecializationDecl *D)
 
void VisitVarTemplatePartialSpecializationDecl (VarTemplatePartialSpecializationDecl *D)
 TODO: Unify with ClassTemplatePartialSpecializationDecl version? May require unifying ClassTemplate(Partial)SpecializationDecl and VarTemplate(Partial)SpecializationDecl with a new data structure Template(Partial)SpecializationDecl, and using Template(Partial)SpecializationDecl as input type. More...
 
void VisitTemplateTypeParmDecl (TemplateTypeParmDecl *D)
 
void VisitValueDecl (ValueDecl *VD)
 
void VisitEnumConstantDecl (EnumConstantDecl *ECD)
 
void VisitUnresolvedUsingValueDecl (UnresolvedUsingValueDecl *D)
 
void VisitDeclaratorDecl (DeclaratorDecl *DD)
 
void VisitFunctionDecl (FunctionDecl *FD)
 
void VisitCXXDeductionGuideDecl (CXXDeductionGuideDecl *GD)
 
void VisitCXXMethodDecl (CXXMethodDecl *D)
 
void VisitCXXConstructorDecl (CXXConstructorDecl *D)
 
void VisitCXXDestructorDecl (CXXDestructorDecl *D)
 
void VisitCXXConversionDecl (CXXConversionDecl *D)
 
void VisitFieldDecl (FieldDecl *FD)
 
void VisitMSPropertyDecl (MSPropertyDecl *FD)
 
void VisitIndirectFieldDecl (IndirectFieldDecl *FD)
 
RedeclarableResult VisitVarDeclImpl (VarDecl *D)
 
void VisitVarDecl (VarDecl *VD)
 
void VisitImplicitParamDecl (ImplicitParamDecl *PD)
 
void VisitParmVarDecl (ParmVarDecl *PD)
 
void VisitDecompositionDecl (DecompositionDecl *DD)
 
void VisitBindingDecl (BindingDecl *BD)
 
void VisitNonTypeTemplateParmDecl (NonTypeTemplateParmDecl *D)
 
DeclID VisitTemplateDecl (TemplateDecl *D)
 
RedeclarableResult VisitRedeclarableTemplateDecl (RedeclarableTemplateDecl *D)
 
void VisitClassTemplateDecl (ClassTemplateDecl *D)
 
void VisitBuiltinTemplateDecl (BuiltinTemplateDecl *D)
 
void VisitVarTemplateDecl (VarTemplateDecl *D)
 TODO: Unify with ClassTemplateDecl version? May require unifying ClassTemplateDecl and VarTemplateDecl beyond TemplateDecl... More...
 
void VisitFunctionTemplateDecl (FunctionTemplateDecl *D)
 
void VisitTemplateTemplateParmDecl (TemplateTemplateParmDecl *D)
 
void VisitTypeAliasTemplateDecl (TypeAliasTemplateDecl *D)
 
void VisitUsingDecl (UsingDecl *D)
 
void VisitUsingPackDecl (UsingPackDecl *D)
 
void VisitUsingShadowDecl (UsingShadowDecl *D)
 
void VisitConstructorUsingShadowDecl (ConstructorUsingShadowDecl *D)
 
void VisitLinkageSpecDecl (LinkageSpecDecl *D)
 
void VisitExportDecl (ExportDecl *D)
 
void VisitFileScopeAsmDecl (FileScopeAsmDecl *AD)
 
void VisitImportDecl (ImportDecl *D)
 
void VisitAccessSpecDecl (AccessSpecDecl *D)
 
void VisitFriendDecl (FriendDecl *D)
 
void VisitFriendTemplateDecl (FriendTemplateDecl *D)
 
void VisitStaticAssertDecl (StaticAssertDecl *D)
 
void VisitBlockDecl (BlockDecl *BD)
 
void VisitCapturedDecl (CapturedDecl *CD)
 
void VisitEmptyDecl (EmptyDecl *D)
 
std::pair< uint64_t, uint64_t > VisitDeclContext (DeclContext *DC)
 
template<typename T >
RedeclarableResult VisitRedeclarable (Redeclarable< T > *D)
 
template<typename T >
void mergeRedeclarable (Redeclarable< T > *D, RedeclarableResult &Redecl, DeclID TemplatePatternID=0)
 Attempts to merge the given declaration (D) with another declaration of the same entity. More...
 
template<typename T >
void mergeRedeclarable (Redeclarable< T > *D, T *Existing, RedeclarableResult &Redecl, DeclID TemplatePatternID=0)
 Attempts to merge the given declaration (D) with another declaration of the same entity. More...
 
template<typename T >
void mergeMergeable (Mergeable< T > *D)
 Attempts to merge the given declaration (D) with another declaration of the same entity, for the case where the entity is not actually redeclarable. More...
 
void mergeTemplatePattern (RedeclarableTemplateDecl *D, RedeclarableTemplateDecl *Existing, DeclID DsID, bool IsKeyDecl)
 Merge together the pattern declarations from two template declarations. More...
 
ObjCTypeParamListReadObjCTypeParamList ()
 
void VisitObjCMethodDecl (ObjCMethodDecl *D)
 
void VisitObjCTypeParamDecl (ObjCTypeParamDecl *D)
 
void VisitObjCContainerDecl (ObjCContainerDecl *D)
 
void VisitObjCInterfaceDecl (ObjCInterfaceDecl *D)
 
void VisitObjCIvarDecl (ObjCIvarDecl *D)
 
void VisitObjCProtocolDecl (ObjCProtocolDecl *D)
 
void VisitObjCAtDefsFieldDecl (ObjCAtDefsFieldDecl *D)
 
void VisitObjCCategoryDecl (ObjCCategoryDecl *D)
 
void VisitObjCImplDecl (ObjCImplDecl *D)
 
void VisitObjCCategoryImplDecl (ObjCCategoryImplDecl *D)
 
void VisitObjCImplementationDecl (ObjCImplementationDecl *D)
 
void VisitObjCCompatibleAliasDecl (ObjCCompatibleAliasDecl *D)
 
void VisitObjCPropertyDecl (ObjCPropertyDecl *D)
 
void VisitObjCPropertyImplDecl (ObjCPropertyImplDecl *D)
 
void VisitOMPThreadPrivateDecl (OMPThreadPrivateDecl *D)
 
void VisitOMPDeclareReductionDecl (OMPDeclareReductionDecl *D)
 
void VisitOMPRequiresDecl (OMPRequiresDecl *D)
 
void VisitOMPCapturedExprDecl (OMPCapturedExprDecl *D)
 
template<>
void attachPreviousDeclImpl (ASTReader &Reader, Redeclarable< VarDecl > *D, Decl *Previous, Decl *Canon)
 
template<>
void attachPreviousDeclImpl (ASTReader &Reader, Redeclarable< FunctionDecl > *D, Decl *Previous, Decl *Canon)
 
- Public Member Functions inherited from clang::declvisitor::Base< declvisitor::make_ptr, ASTDeclReader, void >
void Visit (PTR(Decl) D)
 
void VisitDecl (PTR(Decl) D)
 

Static Public Member Functions

template<typename T >
static void AddLazySpecializations (T *D, SmallVectorImpl< serialization::DeclID > &IDs)
 
template<typename DeclT >
static DeclgetMostRecentDeclImpl (Redeclarable< DeclT > *D)
 
static DeclgetMostRecentDeclImpl (...)
 
static DeclgetMostRecentDecl (Decl *D)
 
template<typename DeclT >
static void attachPreviousDeclImpl (ASTReader &Reader, Redeclarable< DeclT > *D, Decl *Previous, Decl *Canon)
 
static void attachPreviousDeclImpl (ASTReader &Reader,...)
 
static void attachPreviousDecl (ASTReader &Reader, Decl *D, Decl *Previous, Decl *Canon)
 
template<typename DeclT >
static void attachLatestDeclImpl (Redeclarable< DeclT > *D, Decl *Latest)
 
static void attachLatestDeclImpl (...)
 
static void attachLatestDecl (Decl *D, Decl *latest)
 
template<typename DeclT >
static void markIncompleteDeclChainImpl (Redeclarable< DeclT > *D)
 
static void markIncompleteDeclChainImpl (...)
 
static void setNextObjCCategory (ObjCCategoryDecl *Cat, ObjCCategoryDecl *Next)
 

Detailed Description

Definition at line 82 of file ASTReaderDecl.cpp.

Constructor & Destructor Documentation

◆ ASTDeclReader()

clang::ASTDeclReader::ASTDeclReader ( ASTReader Reader,
ASTRecordReader Record,
ASTReader::RecordLocation  Loc,
DeclID  thisDeclID,
SourceLocation  ThisDeclLoc 
)
inline

Definition at line 259 of file ASTReaderDecl.cpp.

Member Function Documentation

◆ AddLazySpecializations()

template<typename T >
static void clang::ASTDeclReader::AddLazySpecializations ( T *  D,
SmallVectorImpl< serialization::DeclID > &  IDs 
)
inlinestatic

Definition at line 266 of file ASTReaderDecl.cpp.

References Previous.

Referenced by VisitClassTemplateDecl(), VisitFunctionTemplateDecl(), and VisitVarTemplateDecl().

◆ attachLatestDecl()

void ASTDeclReader::attachLatestDecl ( Decl D,
Decl latest 
)
static

Definition at line 3577 of file ASTReaderDecl.cpp.

References clang::Decl::getKind().

◆ attachLatestDeclImpl() [1/2]

template<typename DeclT >
void ASTDeclReader::attachLatestDeclImpl ( Redeclarable< DeclT > *  D,
Decl Latest 
)
static

Definition at line 3569 of file ASTReaderDecl.cpp.

References clang::Redeclarable< decl_type >::RedeclLink.

◆ attachLatestDeclImpl() [2/2]

void ASTDeclReader::attachLatestDeclImpl (   ...)
static

Definition at line 3573 of file ASTReaderDecl.cpp.

◆ attachPreviousDecl()

void ASTDeclReader::attachPreviousDecl ( ASTReader Reader,
Decl D,
Decl Previous,
Decl Canon 
)
static

◆ attachPreviousDeclImpl() [1/4]

template<typename DeclT >
void ASTDeclReader::attachPreviousDeclImpl ( ASTReader Reader,
Redeclarable< DeclT > *  D,
Decl Previous,
Decl Canon 
)
static

◆ attachPreviousDeclImpl() [2/4]

void ASTDeclReader::attachPreviousDeclImpl ( ASTReader Reader,
  ... 
)
static

Definition at line 3502 of file ASTReaderDecl.cpp.

◆ attachPreviousDeclImpl() [3/4]

template<>
void clang::ASTDeclReader::attachPreviousDeclImpl ( ASTReader Reader,
Redeclarable< VarDecl > *  D,
Decl Previous,
Decl Canon 
)

◆ attachPreviousDeclImpl() [4/4]

template<>
void clang::ASTDeclReader::attachPreviousDeclImpl ( ASTReader Reader,
Redeclarable< FunctionDecl > *  D,
Decl Previous,
Decl Canon 
)

◆ getMostRecentDecl()

Decl * ASTDeclReader::getMostRecentDecl ( Decl D)
static

Definition at line 3391 of file ASTReaderDecl.cpp.

References clang::Decl::getCanonicalDecl(), and clang::Decl::getKind().

◆ getMostRecentDeclImpl() [1/2]

template<typename DeclT >
Decl * ASTDeclReader::getMostRecentDeclImpl ( Redeclarable< DeclT > *  D)
static

Definition at line 3383 of file ASTReaderDecl.cpp.

References clang::Redeclarable< decl_type >::RedeclLink.

◆ getMostRecentDeclImpl() [2/2]

Decl * ASTDeclReader::getMostRecentDeclImpl (   ...)
static

Definition at line 3387 of file ASTReaderDecl.cpp.

◆ hasPendingBody()

bool clang::ASTDeclReader::hasPendingBody ( ) const
inline

Determine whether this declaration has a pending body.

Definition at line 312 of file ASTReaderDecl.cpp.

◆ markIncompleteDeclChainImpl() [1/2]

template<typename DeclT >
void ASTDeclReader::markIncompleteDeclChainImpl ( Redeclarable< DeclT > *  D)
static

Definition at line 3591 of file ASTReaderDecl.cpp.

References clang::Redeclarable< decl_type >::RedeclLink.

◆ markIncompleteDeclChainImpl() [2/2]

void ASTDeclReader::markIncompleteDeclChainImpl (   ...)
static

Definition at line 3595 of file ASTReaderDecl.cpp.

References clang::Decl::getKind().

◆ mergeMergeable()

template<typename T >
void ASTDeclReader::mergeMergeable ( Mergeable< T > *  D)

Attempts to merge the given declaration (D) with another declaration of the same entity, for the case where the entity is not actually redeclarable.

This happens, for instance, when merging the fields of identical class definitions from two different modules.

Definition at line 2606 of file ASTReaderDecl.cpp.

References allowODRLikeMergeInC().

◆ mergeRedeclarable() [1/2]

template<typename T >
void ASTDeclReader::mergeRedeclarable ( Redeclarable< T > *  DBase,
RedeclarableResult &  Redecl,
DeclID  TemplatePatternID = 0 
)

Attempts to merge the given declaration (D) with another declaration of the same entity.

Definition at line 2476 of file ASTReaderDecl.cpp.

References clang::Redeclarable< decl_type >::isFirstDecl().

◆ mergeRedeclarable() [2/2]

template<typename T >
void ASTDeclReader::mergeRedeclarable ( Redeclarable< T > *  DBase,
T *  Existing,
RedeclarableResult &  Redecl,
DeclID  TemplatePatternID = 0 
)

Attempts to merge the given declaration (D) with another declaration of the same entity.

Definition at line 2550 of file ASTReaderDecl.cpp.

References clang::Redeclarable< decl_type >::First, clang::CXXRecordDecl::getCanonicalDecl(), clang::Redeclarable< decl_type >::PreviousDeclLink(), and clang::Redeclarable< decl_type >::RedeclLink.

◆ mergeTemplatePattern()

void ASTDeclReader::mergeTemplatePattern ( RedeclarableTemplateDecl D,
RedeclarableTemplateDecl Existing,
DeclID  DsID,
bool  IsKeyDecl 
)

Merge together the pattern declarations from two template declarations.

Definition at line 2507 of file ASTReaderDecl.cpp.

References clang::TemplateDecl::getTemplatedDecl().

◆ ReadFunctionDefinition()

void ASTDeclReader::ReadFunctionDefinition ( FunctionDecl FD)

Definition at line 507 of file ASTReaderDecl.cpp.

References clang::if(), and clang::serialization::MK_MainFile.

◆ ReadObjCTypeParamList()

ObjCTypeParamList * ASTDeclReader::ReadObjCTypeParamList ( )

Definition at line 1056 of file ASTReaderDecl.cpp.

References clang::ObjCTypeParamList::create().

◆ setNextObjCCategory()

static void clang::ASTDeclReader::setNextObjCCategory ( ObjCCategoryDecl Cat,
ObjCCategoryDecl Next 
)
inlinestatic

Definition at line 319 of file ASTReaderDecl.cpp.

◆ UpdateDecl()

void ASTDeclReader::UpdateDecl ( Decl D,
SmallVectorImpl< serialization::DeclID > &  PendingLazySpecializationIDs 
)

Definition at line 4193 of file ASTReaderDecl.cpp.

References clang::Decl::addAttr(), clang::EvaluatedStmt::CheckedICE, clang::TemplateArgumentList::CreateCopy(), clang::First, forAllLaterRedecls(), clang::Decl::getCanonicalDecl(), clang::ASTReader::getContext(), clang::ASTContext::getFunctionType(), clang::ASTReader::getSubmodule(), clang::Decl::hasAttrs(), clang::EvaluatedStmt::IsICE, clang::isUnresolvedExceptionSpec(), clang::Decl::markUsed(), clang::ASTContext::mergeDefinitionIntoModule(), clang::FunctionDecl::setImplicitlyInline(), clang::ASTContext::setManglingNumber(), clang::ASTContext::setStaticLocalNumber(), clang::serialization::UPD_ADDED_ATTR_TO_RECORD, clang::serialization::UPD_CXX_ADDED_ANONYMOUS_NAMESPACE, clang::serialization::UPD_CXX_ADDED_FUNCTION_DEFINITION, clang::serialization::UPD_CXX_ADDED_IMPLICIT_MEMBER, clang::serialization::UPD_CXX_ADDED_TEMPLATE_SPECIALIZATION, clang::serialization::UPD_CXX_ADDED_VAR_DEFINITION, clang::serialization::UPD_CXX_DEDUCED_RETURN_TYPE, clang::serialization::UPD_CXX_INSTANTIATED_CLASS_DEFINITION, clang::serialization::UPD_CXX_INSTANTIATED_DEFAULT_ARGUMENT, clang::serialization::UPD_CXX_INSTANTIATED_DEFAULT_MEMBER_INITIALIZER, clang::serialization::UPD_CXX_POINT_OF_INSTANTIATION, clang::serialization::UPD_CXX_RESOLVED_DTOR_DELETE, clang::serialization::UPD_CXX_RESOLVED_EXCEPTION_SPEC, clang::serialization::UPD_DECL_EXPORTED, clang::serialization::UPD_DECL_MARKED_OPENMP_DECLARETARGET, clang::serialization::UPD_DECL_MARKED_OPENMP_THREADPRIVATE, clang::serialization::UPD_DECL_MARKED_USED, clang::serialization::UPD_MANGLING_NUMBER, and clang::serialization::UPD_STATIC_LOCAL_NUMBER.

◆ Visit()

void ASTDeclReader::Visit ( Decl D)

◆ VisitAccessSpecDecl()

void ASTDeclReader::VisitAccessSpecDecl ( AccessSpecDecl D)

Definition at line 2032 of file ASTReaderDecl.cpp.

References clang::AccessSpecDecl::setColonLoc().

◆ VisitBindingDecl()

void ASTDeclReader::VisitBindingDecl ( BindingDecl BD)

Definition at line 1457 of file ASTReaderDecl.cpp.

◆ VisitBlockDecl()

void ASTDeclReader::VisitBlockDecl ( BlockDecl BD)

◆ VisitBuiltinTemplateDecl()

void ASTDeclReader::VisitBuiltinTemplateDecl ( BuiltinTemplateDecl D)

Definition at line 2135 of file ASTReaderDecl.cpp.

◆ VisitCapturedDecl()

void ASTDeclReader::VisitCapturedDecl ( CapturedDecl CD)

◆ VisitClassScopeFunctionSpecializationDecl()

void ASTDeclReader::VisitClassScopeFunctionSpecializationDecl ( ClassScopeFunctionSpecializationDecl D)

Definition at line 2242 of file ASTReaderDecl.cpp.

◆ VisitClassTemplateDecl()

void ASTDeclReader::VisitClassTemplateDecl ( ClassTemplateDecl D)

◆ VisitClassTemplatePartialSpecializationDecl()

void ASTDeclReader::VisitClassTemplatePartialSpecializationDecl ( ClassTemplatePartialSpecializationDecl D)

Definition at line 2227 of file ASTReaderDecl.cpp.

◆ VisitClassTemplateSpecializationDecl()

void clang::ASTDeclReader::VisitClassTemplateSpecializationDecl ( ClassTemplateSpecializationDecl D)
inline

Definition at line 347 of file ASTReaderDecl.cpp.

◆ VisitClassTemplateSpecializationDeclImpl()

ASTDeclReader::RedeclarableResult ASTDeclReader::VisitClassTemplateSpecializationDeclImpl ( ClassTemplateSpecializationDecl D)

◆ VisitConstructorUsingShadowDecl()

void ASTDeclReader::VisitConstructorUsingShadowDecl ( ConstructorUsingShadowDecl D)

Definition at line 1605 of file ASTReaderDecl.cpp.

◆ VisitCXXConstructorDecl()

void ASTDeclReader::VisitCXXConstructorDecl ( CXXConstructorDecl D)

◆ VisitCXXConversionDecl()

void ASTDeclReader::VisitCXXConversionDecl ( CXXConversionDecl D)

Definition at line 2018 of file ASTReaderDecl.cpp.

◆ VisitCXXDeductionGuideDecl()

void ASTDeclReader::VisitCXXDeductionGuideDecl ( CXXDeductionGuideDecl GD)

◆ VisitCXXDestructorDecl()

void ASTDeclReader::VisitCXXDestructorDecl ( CXXDestructorDecl D)

Definition at line 2004 of file ASTReaderDecl.cpp.

References clang::CXXDestructorDecl::getCanonicalDecl().

◆ VisitCXXMethodDecl()

void ASTDeclReader::VisitCXXMethodDecl ( CXXMethodDecl D)

◆ VisitCXXRecordDecl()

void clang::ASTDeclReader::VisitCXXRecordDecl ( CXXRecordDecl D)
inline

Definition at line 343 of file ASTReaderDecl.cpp.

◆ VisitCXXRecordDeclImpl()

ASTDeclReader::RedeclarableResult ASTDeclReader::VisitCXXRecordDeclImpl ( CXXRecordDecl D)

◆ VisitDecl()

void ASTDeclReader::VisitDecl ( Decl D)

◆ VisitDeclaratorDecl()

void ASTDeclReader::VisitDeclaratorDecl ( DeclaratorDecl DD)

◆ VisitDeclContext()

std::pair< uint64_t, uint64_t > ASTDeclReader::VisitDeclContext ( DeclContext DC)

Definition at line 2407 of file ASTReaderDecl.cpp.

◆ VisitDecompositionDecl()

void ASTDeclReader::VisitDecompositionDecl ( DecompositionDecl DD)

Definition at line 1450 of file ASTReaderDecl.cpp.

◆ VisitEmptyDecl()

void ASTDeclReader::VisitEmptyDecl ( EmptyDecl D)

Definition at line 2402 of file ASTReaderDecl.cpp.

◆ VisitEnumConstantDecl()

void ASTDeclReader::VisitEnumConstantDecl ( EnumConstantDecl ECD)

◆ VisitEnumDecl()

void ASTDeclReader::VisitEnumDecl ( EnumDecl ED)

◆ VisitExportDecl()

void ASTDeclReader::VisitExportDecl ( ExportDecl D)

Definition at line 1520 of file ASTReaderDecl.cpp.

◆ VisitFieldDecl()

void ASTDeclReader::VisitFieldDecl ( FieldDecl FD)

◆ VisitFileScopeAsmDecl()

void ASTDeclReader::VisitFileScopeAsmDecl ( FileScopeAsmDecl AD)

◆ VisitFriendDecl()

void ASTDeclReader::VisitFriendDecl ( FriendDecl D)

Definition at line 2037 of file ASTReaderDecl.cpp.

◆ VisitFriendTemplateDecl()

void ASTDeclReader::VisitFriendTemplateDecl ( FriendTemplateDecl D)

Definition at line 2051 of file ASTReaderDecl.cpp.

◆ VisitFunctionDecl()

void ASTDeclReader::VisitFunctionDecl ( FunctionDecl FD)

Definition at line 834 of file ASTReaderDecl.cpp.

References clang::TemplateArgumentListInfo::addArgument(), clang::UnresolvedSetImpl::addDecl(), clang::Type::castAs(), clang::FunctionTemplateSpecializationInfo::Create(), clang::TemplateArgumentList::CreateCopy(), clang::FunctionTemplateSpecializationInfo::Function, clang::Type::getContainedAutoType(), clang::NamedDecl::getDeclName(), clang::FunctionDecl::getMemberSpecializationInfo(), clang::TypeSourceInfo::getType(), clang::DeclaratorDecl::getTypeSourceInfo(), clang::Decl::isCanonicalDecl(), clang::FunctionTemplateSpecializationInfo::Profile(), clang::Decl::setCachedLinkage(), clang::FunctionDecl::setConstexpr(), clang::FunctionDecl::setDefaulted(), clang::FunctionDecl::setDeletedAsWritten(), clang::FunctionDecl::setDependentTemplateSpecialization(), clang::FunctionDecl::setDescribedFunctionTemplate(), clang::FunctionDecl::setExplicitlyDefaulted(), clang::FunctionDecl::setExplicitSpecified(), clang::FunctionDecl::setHasImplicitReturnZero(), clang::FunctionDecl::setHasInheritedPrototype(), clang::FunctionDecl::setHasSkippedBody(), clang::FunctionDecl::setHasWrittenPrototype(), clang::FunctionDecl::setImplicitlyInline(), clang::FunctionDecl::setInlineSpecified(), clang::FunctionDecl::setIsMultiVersion(), clang::TemplateArgumentListInfo::setLAngleLoc(), clang::FunctionDecl::setLateTemplateParsed(), clang::MemberSpecializationInfo::setPointOfInstantiation(), clang::FunctionDecl::setPure(), clang::TemplateArgumentListInfo::setRAngleLoc(), clang::FunctionDecl::setStorageClass(), clang::FunctionDecl::setTrivial(), clang::FunctionDecl::setTrivialForCall(), clang::ValueDecl::setType(), clang::FunctionDecl::setUsesSEHTry(), clang::FunctionDecl::setVirtualAsWritten(), clang::FunctionTemplateDecl::Common::Specializations, clang::FunctionDecl::TK_DependentFunctionTemplateSpecialization, clang::FunctionDecl::TK_FunctionTemplate, clang::FunctionDecl::TK_FunctionTemplateSpecialization, clang::FunctionDecl::TK_MemberSpecialization, and clang::FunctionDecl::TK_NonTemplate.

◆ VisitFunctionTemplateDecl()

void ASTDeclReader::VisitFunctionTemplateDecl ( FunctionTemplateDecl D)

Definition at line 2248 of file ASTReaderDecl.cpp.

References AddLazySpecializations().

◆ VisitImplicitParamDecl()

void ASTDeclReader::VisitImplicitParamDecl ( ImplicitParamDecl PD)

Definition at line 1424 of file ASTReaderDecl.cpp.

◆ VisitImportDecl()

void ASTDeclReader::VisitImportDecl ( ImportDecl D)

Definition at line 2022 of file ASTReaderDecl.cpp.

◆ VisitIndirectFieldDecl()

void ASTDeclReader::VisitIndirectFieldDecl ( IndirectFieldDecl FD)

Definition at line 1334 of file ASTReaderDecl.cpp.

References clang::for().

◆ VisitLabelDecl()

void ASTDeclReader::VisitLabelDecl ( LabelDecl LD)

Definition at line 1525 of file ASTReaderDecl.cpp.

References clang::LabelDecl::setLocStart().

◆ VisitLinkageSpecDecl()

void ASTDeclReader::VisitLinkageSpecDecl ( LinkageSpecDecl D)

◆ VisitMSPropertyDecl()

void ASTDeclReader::VisitMSPropertyDecl ( MSPropertyDecl FD)

Definition at line 1328 of file ASTReaderDecl.cpp.

◆ VisitNamedDecl()

void ASTDeclReader::VisitNamedDecl ( NamedDecl ND)

Definition at line 655 of file ASTReaderDecl.cpp.

References clang::NamedDecl::setDeclName().

◆ VisitNamespaceAliasDecl()

void ASTDeclReader::VisitNamespaceAliasDecl ( NamespaceAliasDecl D)

Definition at line 1562 of file ASTReaderDecl.cpp.

◆ VisitNamespaceDecl()

void ASTDeclReader::VisitNamespaceDecl ( NamespaceDecl D)

◆ VisitNonTypeTemplateParmDecl()

void ASTDeclReader::VisitNonTypeTemplateParmDecl ( NonTypeTemplateParmDecl D)

◆ VisitObjCAtDefsFieldDecl()

void ASTDeclReader::VisitObjCAtDefsFieldDecl ( ObjCAtDefsFieldDecl D)

Definition at line 1209 of file ASTReaderDecl.cpp.

◆ VisitObjCCategoryDecl()

void ASTDeclReader::VisitObjCCategoryDecl ( ObjCCategoryDecl D)

◆ VisitObjCCategoryImplDecl()

void ASTDeclReader::VisitObjCCategoryImplDecl ( ObjCCategoryImplDecl D)

Definition at line 1279 of file ASTReaderDecl.cpp.

◆ VisitObjCCompatibleAliasDecl()

void ASTDeclReader::VisitObjCCompatibleAliasDecl ( ObjCCompatibleAliasDecl D)

◆ VisitObjCContainerDecl()

void ASTDeclReader::VisitObjCContainerDecl ( ObjCContainerDecl D)

◆ VisitObjCImplDecl()

void ASTDeclReader::VisitObjCImplDecl ( ObjCImplDecl D)

Definition at line 1274 of file ASTReaderDecl.cpp.

References clang::ObjCImplDecl::setClassInterface().

◆ VisitObjCImplementationDecl()

void ASTDeclReader::VisitObjCImplementationDecl ( ObjCImplementationDecl D)

◆ VisitObjCInterfaceDecl()

void ASTDeclReader::VisitObjCInterfaceDecl ( ObjCInterfaceDecl D)

◆ VisitObjCIvarDecl()

void ASTDeclReader::VisitObjCIvarDecl ( ObjCIvarDecl D)

◆ VisitObjCMethodDecl()

void ASTDeclReader::VisitObjCMethodDecl ( ObjCMethodDecl D)

◆ VisitObjCPropertyDecl()

void ASTDeclReader::VisitObjCPropertyDecl ( ObjCPropertyDecl D)

◆ VisitObjCPropertyImplDecl()

void ASTDeclReader::VisitObjCPropertyImplDecl ( ObjCPropertyImplDecl D)

◆ VisitObjCProtocolDecl()

void ASTDeclReader::VisitObjCProtocolDecl ( ObjCProtocolDecl D)

Definition at line 1180 of file ASTReaderDecl.cpp.

References clang::ObjCProtocolDecl::getCanonicalDecl().

◆ VisitObjCTypeParamDecl()

void ASTDeclReader::VisitObjCTypeParamDecl ( ObjCTypeParamDecl D)

Definition at line 1041 of file ASTReaderDecl.cpp.

◆ VisitOMPCapturedExprDecl()

void ASTDeclReader::VisitOMPCapturedExprDecl ( OMPCapturedExprDecl D)

◆ VisitOMPDeclareReductionDecl()

void ASTDeclReader::VisitOMPDeclareReductionDecl ( OMPDeclareReductionDecl D)

◆ VisitOMPRequiresDecl()

void ASTDeclReader::VisitOMPRequiresDecl ( OMPRequiresDecl D)

◆ VisitOMPThreadPrivateDecl()

void ASTDeclReader::VisitOMPThreadPrivateDecl ( OMPThreadPrivateDecl D)

Definition at line 2625 of file ASTReaderDecl.cpp.

References clang::OMPThreadPrivateDecl::varlist_size().

◆ VisitParmVarDecl()

void ASTDeclReader::VisitParmVarDecl ( ParmVarDecl PD)

◆ VisitPragmaCommentDecl()

void ASTDeclReader::VisitPragmaCommentDecl ( PragmaCommentDecl D)

Definition at line 628 of file ASTReaderDecl.cpp.

References memcpy(), and clang::Decl::setLocation().

◆ VisitPragmaDetectMismatchDecl()

void ASTDeclReader::VisitPragmaDetectMismatchDecl ( PragmaDetectMismatchDecl D)

Definition at line 637 of file ASTReaderDecl.cpp.

References clang::Decl::setLocation().

◆ VisitRecordDecl()

void clang::ASTDeclReader::VisitRecordDecl ( RecordDecl RD)
inline

Definition at line 341 of file ASTReaderDecl.cpp.

◆ VisitRecordDeclImpl()

ASTDeclReader::RedeclarableResult ASTDeclReader::VisitRecordDeclImpl ( RecordDecl RD)

◆ VisitRedeclarable()

template<typename T >
ASTDeclReader::RedeclarableResult ASTDeclReader::VisitRedeclarable ( Redeclarable< T > *  D)

◆ VisitRedeclarableTemplateDecl()

ASTDeclReader::RedeclarableResult ASTDeclReader::VisitRedeclarableTemplateDecl ( RedeclarableTemplateDecl D)

◆ VisitStaticAssertDecl()

void ASTDeclReader::VisitStaticAssertDecl ( StaticAssertDecl D)

Definition at line 2394 of file ASTReaderDecl.cpp.

◆ VisitTagDecl()

ASTDeclReader::RedeclarableResult ASTDeclReader::VisitTagDecl ( TagDecl TD)

◆ VisitTemplateDecl()

DeclID ASTDeclReader::VisitTemplateDecl ( TemplateDecl D)

Definition at line 2065 of file ASTReaderDecl.cpp.

References clang::TemplateDecl::init().

◆ VisitTemplateTemplateParmDecl()

void ASTDeclReader::VisitTemplateTemplateParmDecl ( TemplateTemplateParmDecl D)

◆ VisitTemplateTypeParmDecl()

void ASTDeclReader::VisitTemplateTypeParmDecl ( TemplateTypeParmDecl D)

◆ VisitTranslationUnitDecl()

void ASTDeclReader::VisitTranslationUnitDecl ( TranslationUnitDecl TU)

Definition at line 651 of file ASTReaderDecl.cpp.

◆ VisitTypeAliasDecl()

void ASTDeclReader::VisitTypeAliasDecl ( TypeAliasDecl TD)

◆ VisitTypeAliasTemplateDecl()

void ASTDeclReader::VisitTypeAliasTemplateDecl ( TypeAliasTemplateDecl D)

Definition at line 2390 of file ASTReaderDecl.cpp.

◆ VisitTypeDecl()

void ASTDeclReader::VisitTypeDecl ( TypeDecl TD)

Definition at line 661 of file ASTReaderDecl.cpp.

References clang::TypeDecl::setLocStart().

◆ VisitTypedefDecl()

void ASTDeclReader::VisitTypedefDecl ( TypedefDecl TD)

Definition at line 686 of file ASTReaderDecl.cpp.

◆ VisitTypedefNameDecl()

ASTDeclReader::RedeclarableResult ASTDeclReader::VisitTypedefNameDecl ( TypedefNameDecl TD)

◆ VisitUnresolvedUsingTypenameDecl()

void ASTDeclReader::VisitUnresolvedUsingTypenameDecl ( UnresolvedUsingTypenameDecl D)

◆ VisitUnresolvedUsingValueDecl()

void ASTDeclReader::VisitUnresolvedUsingValueDecl ( UnresolvedUsingValueDecl D)

◆ VisitUsingDecl()

void ASTDeclReader::VisitUsingDecl ( UsingDecl D)

◆ VisitUsingDirectiveDecl()

void ASTDeclReader::VisitUsingDirectiveDecl ( UsingDirectiveDecl D)

Definition at line 1613 of file ASTReaderDecl.cpp.

◆ VisitUsingPackDecl()

void ASTDeclReader::VisitUsingPackDecl ( UsingPackDecl D)

Definition at line 1584 of file ASTReaderDecl.cpp.

◆ VisitUsingShadowDecl()

void ASTDeclReader::VisitUsingShadowDecl ( UsingShadowDecl D)

Definition at line 1593 of file ASTReaderDecl.cpp.

◆ VisitValueDecl()

void ASTDeclReader::VisitValueDecl ( ValueDecl VD)

Definition at line 801 of file ASTReaderDecl.cpp.

References clang::ValueDecl::setType().

◆ VisitVarDecl()

void clang::ASTDeclReader::VisitVarDecl ( VarDecl VD)
inline

Definition at line 380 of file ASTReaderDecl.cpp.

◆ VisitVarDeclImpl()

ASTDeclReader::RedeclarableResult ASTDeclReader::VisitVarDeclImpl ( VarDecl D)

◆ VisitVarTemplateDecl()

void ASTDeclReader::VisitVarTemplateDecl ( VarTemplateDecl D)

TODO: Unify with ClassTemplateDecl version? May require unifying ClassTemplateDecl and VarTemplateDecl beyond TemplateDecl...

Definition at line 2142 of file ASTReaderDecl.cpp.

References AddLazySpecializations().

◆ VisitVarTemplatePartialSpecializationDecl()

void ASTDeclReader::VisitVarTemplatePartialSpecializationDecl ( VarTemplatePartialSpecializationDecl D)

TODO: Unify with ClassTemplatePartialSpecializationDecl version? May require unifying ClassTemplate(Partial)SpecializationDecl and VarTemplate(Partial)SpecializationDecl with a new data structure Template(Partial)SpecializationDecl, and using Template(Partial)SpecializationDecl as input type.

Definition at line 2327 of file ASTReaderDecl.cpp.

◆ VisitVarTemplateSpecializationDecl()

void clang::ASTDeclReader::VisitVarTemplateSpecializationDecl ( VarTemplateSpecializationDecl D)
inline

Definition at line 359 of file ASTReaderDecl.cpp.

◆ VisitVarTemplateSpecializationDeclImpl()

ASTDeclReader::RedeclarableResult ASTDeclReader::VisitVarTemplateSpecializationDeclImpl ( VarTemplateSpecializationDecl D)

TODO: Unify with ClassTemplateSpecializationDecl version? May require unifying ClassTemplate(Partial)SpecializationDecl and VarTemplate(Partial)SpecializationDecl with a new data structure Template(Partial)SpecializationDecl, and using Template(Partial)SpecializationDecl as input type.

Definition at line 2265 of file ASTReaderDecl.cpp.

References AttributeLangSupport::C, clang::TemplateArgumentList::CreateCopy(), and clang::Decl::isCanonicalDecl().


The documentation for this class was generated from the following file: