class ClassScopeFunctionSpecializationDecl
Declaration
class ClassScopeFunctionSpecializationDecl : public Decl { /* full declaration omitted */ };
Description
Declaration of a function specialization at template class scope. For example: "template<> foo(int a)" will be saved in Specialization as a normal CXXMethodDecl. Then during an instantiation of class A, it will be transformed into an actual function specialization. FIXME: This is redundant; we could store the same information directly on the CXXMethodDecl as a DependentFunctionTemplateSpecializationInfo.
Declared at: clang/include/clang/AST/DeclTemplate.h:2630
Inherits from: Decl
Member Variables
- private clang::CXXMethodDecl* Specialization
- private const clang::ASTTemplateArgumentListInfo* TemplateArgs
Inherited from Decl:
- protected NextInContextAndBits
- protected Access
- protected FromASTFile
- protected IdentifierNamespace
- protected CacheValidAndLinkage
Method Overview
- private ClassScopeFunctionSpecializationDecl(clang::DeclContext * DC, clang::SourceLocation Loc, clang::CXXMethodDecl * FD, const clang::ASTTemplateArgumentListInfo * TemplArgs)
- private ClassScopeFunctionSpecializationDecl(clang::Decl::EmptyShell Empty)
- public static clang::ClassScopeFunctionSpecializationDecl * Create(clang::ASTContext & C, clang::DeclContext * DC, clang::SourceLocation Loc, clang::CXXMethodDecl * FD, bool HasExplicitTemplateArgs, const clang::TemplateArgumentListInfo & TemplateArgs)
- public static clang::ClassScopeFunctionSpecializationDecl * CreateDeserialized(clang::ASTContext & Context, unsigned int ID)
- private virtual void anchor()
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- public clang::CXXMethodDecl * getSpecialization() const
- public const clang::ASTTemplateArgumentListInfo * getTemplateArgsAsWritten() const
- public bool hasExplicitTemplateArgs() const
Inherited from Decl:
- public EnableStatistics
- public PrintStats
- public add
- public addAttr
- public attr_begin
- public attr_end
- public attrs
- public canBeWeakImported
- public castFromDeclContext
- public castToDeclContext
- public classofKind
- public dropAttr
- public dropAttrs
- public dump
- public dump
- public dumpColor
- public getASTContext
- protected getASTMutationListener
- public getAccess
- public getAccessUnsafe
- public getAsFunction
- public getAsFunction
- public getAttr
- public getAttrs
- public getAttrs
- public getAvailability
- public getBeginLoc
- public getBody
- public getBodyRBrace
- protected getCachedLinkage
- public getCanonicalDecl
- public getCanonicalDecl
- public getDeclContext
- public getDeclContext
- public getDeclKindName
- public getDefiningAttr
- public getDescribedTemplate
- public getDescribedTemplateParams
- public getEndLoc
- public getExternalSourceSymbolAttr
- public getFriendObjectKind
- public getFunctionType
- public getGlobalID
- public getID
- public getIdentifierNamespace
- public getIdentifierNamespaceForKind
- public getImportedOwningModule
- public getKind
- public getLangOpts
- public getLexicalDeclContext
- public getLexicalDeclContext
- public getLocalOwningModule
- public getLocation
- public getMaxAlignment
- public getModuleOwnershipKind
- public getMostRecentDecl
- public getMostRecentDecl
- protected getMostRecentDeclImpl
- public getNextDeclInContext
- public getNextDeclInContext
- protected getNextRedeclarationImpl
- public getNonClosureContext
- public getNonClosureContext
- public getOwningModule
- public getOwningModuleForLinkage
- public getOwningModuleID
- public getParentFunctionOrMethod
- public getParentFunctionOrMethod
- public getPreviousDecl
- public getPreviousDecl
- protected getPreviousDeclImpl
- public getSourceRange
- public getTemplateDepth
- public getTranslationUnitDecl
- public getTranslationUnitDecl
- public getVersionIntroduced
- public hasAttr
- public hasAttrs
- public hasBody
- protected hasCachedLinkage
- public hasDefiningAttr
- protected hasLocalOwningModuleStorage
- public hasOwningModule
- public hasTagIdentifierNamespace
- public isCanonicalDecl
- public isDefinedOutsideFunctionOrMethod
- public isDeprecated
- public isDiscardedInGlobalModuleFragment
- public isFirstDecl
- public isFromASTFile
- public isFunctionOrFunctionTemplate
- public isImplicit
- public isInAnonymousNamespace
- public isInExportDeclContext
- public isInIdentifierNamespace
- public isInLocalScopeForInstantiation
- public isInStdNamespace
- public isInvalidDecl
- public isInvisibleOutsideTheOwningModule
- public isLocalExternDecl
- public isModulePrivate
- public isOutOfLine
- public isParameterPack
- public isReachable
- public isReferenced
- public isTagIdentifierNamespace
- public isTemplateDecl
- public isTemplateParameter
- public isTemplateParameterPack
- public isTemplated
- public isThisDeclarationReferenced
- public isTopLevelDeclInObjCContainer
- public isUnavailable
- public isUnconditionallyVisible
- public isUsed
- public isWeakImported
- public markUsed
- public print
- public print
- public printGroup
- public redecls
- public redecls_begin
- public redecls_end
- public setAccess
- public setAttrs
- protected setCachedLinkage
- public setDeclContext
- public setFromASTFile
- public setImplicit
- public setInvalidDecl
- public setIsUsed
- public setLexicalDeclContext
- public setLocalExternDecl
- public setLocalOwningModule
- public setLocation
- public setModuleOwnershipKind
- protected setModulePrivate
- public setNonMemberOperator
- public setObjectOfFriendDecl
- public setOwningModuleID
- public setReferenced
- public setTopLevelDeclInObjCContainer
- public setVisibleDespiteOwningModule
- public specific_attr_begin
- public specific_attr_end
- public specific_attrs
- protected updateOutOfDate
Methods
¶ClassScopeFunctionSpecializationDecl(
clang::DeclContext* DC,
clang::SourceLocation Loc,
clang::CXXMethodDecl* FD,
const clang::ASTTemplateArgumentListInfo*
TemplArgs)
ClassScopeFunctionSpecializationDecl(
clang::DeclContext* DC,
clang::SourceLocation Loc,
clang::CXXMethodDecl* FD,
const clang::ASTTemplateArgumentListInfo*
TemplArgs)
Declared at: clang/include/clang/AST/DeclTemplate.h:2634
Parameters
- clang::DeclContext* DC
- clang::SourceLocation Loc
- clang::CXXMethodDecl* FD
- const clang::ASTTemplateArgumentListInfo* TemplArgs
¶ClassScopeFunctionSpecializationDecl(
clang::Decl::EmptyShell Empty)
ClassScopeFunctionSpecializationDecl(
clang::Decl::EmptyShell Empty)
Declared at: clang/include/clang/AST/DeclTemplate.h:2640
Parameters
- clang::Decl::EmptyShell Empty
¶static clang::
ClassScopeFunctionSpecializationDecl*
Create(clang::ASTContext& C,
clang::DeclContext* DC,
clang::SourceLocation Loc,
clang::CXXMethodDecl* FD,
bool HasExplicitTemplateArgs,
const clang::TemplateArgumentListInfo&
TemplateArgs)
static clang::
ClassScopeFunctionSpecializationDecl*
Create(clang::ASTContext& C,
clang::DeclContext* DC,
clang::SourceLocation Loc,
clang::CXXMethodDecl* FD,
bool HasExplicitTemplateArgs,
const clang::TemplateArgumentListInfo&
TemplateArgs)
Declared at: clang/include/clang/AST/DeclTemplate.h:2656
Parameters
- clang::ASTContext& C
- clang::DeclContext* DC
- clang::SourceLocation Loc
- clang::CXXMethodDecl* FD
- bool HasExplicitTemplateArgs
- const clang::TemplateArgumentListInfo& TemplateArgs
¶static clang::
ClassScopeFunctionSpecializationDecl*
CreateDeserialized(clang::ASTContext& Context,
unsigned int ID)
static clang::
ClassScopeFunctionSpecializationDecl*
CreateDeserialized(clang::ASTContext& Context,
unsigned int ID)
Declared at: clang/include/clang/AST/DeclTemplate.h:2667
Parameters
- clang::ASTContext& Context
- unsigned int ID
¶virtual void anchor()
virtual void anchor()
Declared at: clang/include/clang/AST/DeclTemplate.h:2643
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/DeclTemplate.h:2670
Parameters
- const clang::Decl* D
¶static bool classofKind(clang::Decl::Kind K)
static bool classofKind(clang::Decl::Kind K)
Declared at: clang/include/clang/AST/DeclTemplate.h:2672
Parameters
- clang::Decl::Kind K
¶clang::CXXMethodDecl* getSpecialization() const
clang::CXXMethodDecl* getSpecialization() const
Declared at: clang/include/clang/AST/DeclTemplate.h:2649
¶const clang::ASTTemplateArgumentListInfo*
getTemplateArgsAsWritten() const
const clang::ASTTemplateArgumentListInfo*
getTemplateArgsAsWritten() const
Declared at: clang/include/clang/AST/DeclTemplate.h:2651
¶bool hasExplicitTemplateArgs() const
bool hasExplicitTemplateArgs() const
Declared at: clang/include/clang/AST/DeclTemplate.h:2650