class TemplateParamObjectDecl
Declaration
class TemplateParamObjectDecl : public ValueDecl,
public Mergeable,
public Node { /* full declaration omitted */ };
Description
A template parameter object. Template parameter objects represent values of class type used as template arguments. There is one template parameter object for each such distinct value used as a template argument across the program.
Declared at: clang/include/clang/AST/DeclTemplate.h:3318
Inherits from: ValueDecl, Mergeable, FoldingSetBase::Node
Member Variables
- private clang::APValue Value
- The value of this template parameter object.
Inherited from Decl:
- protected NextInContextAndBits
- protected Access
- protected FromASTFile
- protected IdentifierNamespace
- protected CacheValidAndLinkage
Method Overview
- private static clang::TemplateParamObjectDecl * Create(const clang::ASTContext & C, clang::QualType T, const clang::APValue & V)
- private static clang::TemplateParamObjectDecl * CreateDeserialized(clang::ASTContext & C, unsigned int ID)
- public static void Profile(llvm::FoldingSetNodeID & ID, clang::QualType T, const clang::APValue & V)
- public void Profile(llvm::FoldingSetNodeID & ID)
- private TemplateParamObjectDecl(clang::DeclContext * DC, clang::QualType T, const clang::APValue & V)
- public static bool classof(const clang::Decl * D)
- public static bool classofKind(clang::Decl::Kind K)
- public clang::TemplateParamObjectDecl * getCanonicalDecl()
- public const clang::TemplateParamObjectDecl * getCanonicalDecl() const
- public const clang::APValue & getValue() const
- public void printAsExpr(llvm::raw_ostream & OS) const
- public void printAsExpr(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const
- public void printAsInit(llvm::raw_ostream & OS) const
- public void printAsInit(llvm::raw_ostream & OS, const clang::PrintingPolicy & Policy) const
- public void printName(llvm::raw_ostream & OS) const
Inherited from FoldingSetBase::Node:
Inherited from ValueDecl:
Inherited from NamedDecl:
- public classof
- public classofKind
- public declarationReplaces
- public getDeclName
- public getExplicitVisibility
- public getFormalLinkage
- public getIdentifier
- public getLinkageAndVisibility
- public getLinkageInternal
- public getMostRecentDecl
- public getMostRecentDecl
- public getName
- public getNameAsString
- public getNameForDiagnostic
- public getObjCFStringFormattingFamily
- public getQualifiedNameAsString
- public getUnderlyingDecl
- public getUnderlyingDecl
- public getVisibility
- public hasExternalFormalLinkage
- public hasLinkage
- public hasLinkageBeenComputed
- public isCXXClassMember
- public isCXXInstanceMember
- public isExternallyDeclarable
- public isExternallyVisible
- public isLinkageValid
- public isReserved
- public printName
- public printNestedNameSpecifier
- public printNestedNameSpecifier
- public printQualifiedName
- public printQualifiedName
- public setDeclName
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
¶static clang::TemplateParamObjectDecl* Create(
const clang::ASTContext& C,
clang::QualType T,
const clang::APValue& V)
static clang::TemplateParamObjectDecl* Create(
const clang::ASTContext& C,
clang::QualType T,
const clang::APValue& V)
Declared at: clang/include/clang/AST/DeclTemplate.h:3330
Parameters
- const clang::ASTContext& C
- clang::QualType T
- const clang::APValue& V
¶static clang::TemplateParamObjectDecl*
CreateDeserialized(clang::ASTContext& C,
unsigned int ID)
static clang::TemplateParamObjectDecl*
CreateDeserialized(clang::ASTContext& C,
unsigned int ID)
Declared at: clang/include/clang/AST/DeclTemplate.h:3332
Parameters
- clang::ASTContext& C
- unsigned int ID
¶static void Profile(llvm::FoldingSetNodeID& ID,
clang::QualType T,
const clang::APValue& V)
static void Profile(llvm::FoldingSetNodeID& ID,
clang::QualType T,
const clang::APValue& V)
Declared at: clang/include/clang/AST/DeclTemplate.h:3356
Parameters
- llvm::FoldingSetNodeID& ID
- clang::QualType T
- const clang::APValue& V
¶void Profile(llvm::FoldingSetNodeID& ID)
void Profile(llvm::FoldingSetNodeID& ID)
Declared at: clang/include/clang/AST/DeclTemplate.h:3361
Parameters
¶TemplateParamObjectDecl(clang::DeclContext* DC,
clang::QualType T,
const clang::APValue& V)
TemplateParamObjectDecl(clang::DeclContext* DC,
clang::QualType T,
const clang::APValue& V)
Declared at: clang/include/clang/AST/DeclTemplate.h:3325
Parameters
- clang::DeclContext* DC
- clang::QualType T
- const clang::APValue& V
¶static bool classof(const clang::Decl* D)
static bool classof(const clang::Decl* D)
Declared at: clang/include/clang/AST/DeclTemplate.h:3372
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:3373
Parameters
- clang::Decl::Kind K
¶clang::TemplateParamObjectDecl* getCanonicalDecl()
clang::TemplateParamObjectDecl* getCanonicalDecl()
Description
Retrieves the "canonical" declaration of the given declaration.
Declared at: clang/include/clang/AST/DeclTemplate.h:3365
¶const clang::TemplateParamObjectDecl*
getCanonicalDecl() const
const clang::TemplateParamObjectDecl*
getCanonicalDecl() const
Declared at: clang/include/clang/AST/DeclTemplate.h:3368
¶const clang::APValue& getValue() const
const clang::APValue& getValue() const
Declared at: clang/include/clang/AST/DeclTemplate.h:3354
¶void printAsExpr(llvm::raw_ostream& OS) const
void printAsExpr(llvm::raw_ostream& OS) const
Description
Print this object as an equivalent expression.
Declared at: clang/include/clang/AST/DeclTemplate.h:3346
Parameters
¶void printAsExpr(
llvm::raw_ostream& OS,
const clang::PrintingPolicy& Policy) const
void printAsExpr(
llvm::raw_ostream& OS,
const clang::PrintingPolicy& Policy) const
Declared at: clang/include/clang/AST/DeclTemplate.h:3347
Parameters
- llvm::raw_ostream& OS
- const clang::PrintingPolicy& Policy
¶void printAsInit(llvm::raw_ostream& OS) const
void printAsInit(llvm::raw_ostream& OS) const
Description
Print this object as an initializer suitable for a variable of the object's type.
Declared at: clang/include/clang/AST/DeclTemplate.h:3351
Parameters
¶void printAsInit(
llvm::raw_ostream& OS,
const clang::PrintingPolicy& Policy) const
void printAsInit(
llvm::raw_ostream& OS,
const clang::PrintingPolicy& Policy) const
Declared at: clang/include/clang/AST/DeclTemplate.h:3352
Parameters
- llvm::raw_ostream& OS
- const clang::PrintingPolicy& Policy
¶void printName(llvm::raw_ostream& OS) const
void printName(llvm::raw_ostream& OS) const
Description
Print this template parameter object in a human-readable format.
Declared at: clang/include/clang/AST/DeclTemplate.h:3343