clang
3.9.0
|
Represents a variable template specialization, which refers to a variable template with a given set of template arguments. More...
#include <DeclTemplate.h>
Public Member Functions | |
void | getNameForDiagnostic (raw_ostream &OS, const PrintingPolicy &Policy, bool Qualified) const override |
getNameForDiagnostic - Appends a human-readable name for this declaration into the given stream. More... | |
VarTemplateSpecializationDecl * | getMostRecentDecl () |
VarTemplateDecl * | getSpecializedTemplate () const |
Retrieve the template that this specialization specializes. More... | |
const TemplateArgumentList & | getTemplateArgs () const |
Retrieve the template arguments of the variable template specialization. More... | |
void | setTemplateArgsInfo (const TemplateArgumentListInfo &ArgsInfo) |
const TemplateArgumentListInfo & | getTemplateArgsInfo () const |
TemplateSpecializationKind | getSpecializationKind () const |
Determine the kind of specialization that this declaration represents. More... | |
bool | isExplicitSpecialization () const |
bool | isExplicitInstantiationOrSpecialization () const |
True if this declaration is an explicit specialization, explicit instantiation declaration, or explicit instantiation definition. More... | |
void | setSpecializationKind (TemplateSpecializationKind TSK) |
SourceLocation | getPointOfInstantiation () const |
Get the point of instantiation (if any), or null if none. More... | |
void | setPointOfInstantiation (SourceLocation Loc) |
llvm::PointerUnion < VarTemplateDecl *, VarTemplatePartialSpecializationDecl * > | getInstantiatedFrom () const |
If this variable template specialization is an instantiation of a template (rather than an explicit specialization), return the variable template or variable template partial specialization from which it was instantiated. More... | |
llvm::PointerUnion < VarTemplateDecl *, VarTemplatePartialSpecializationDecl * > | getSpecializedTemplateOrPartial () const |
Retrieve the variable template or variable template partial specialization which was specialized by this. More... | |
const TemplateArgumentList & | getTemplateInstantiationArgs () const |
Retrieve the set of template arguments that should be used to instantiate the initializer of the variable template or variable template partial specialization from which this variable template specialization was instantiated. More... | |
void | setInstantiationOf (VarTemplatePartialSpecializationDecl *PartialSpec, const TemplateArgumentList *TemplateArgs) |
Note that this variable template specialization is actually an instantiation of the given variable template partial specialization whose template arguments have been deduced. More... | |
void | setInstantiationOf (VarTemplateDecl *TemplDecl) |
Note that this variable template specialization is an instantiation of the given variable template. More... | |
void | setTypeAsWritten (TypeSourceInfo *T) |
Sets the type of this specialization as it was written by the user. More... | |
TypeSourceInfo * | getTypeAsWritten () const |
Gets the type of this specialization as it was written by the user, if it was so written. More... | |
SourceLocation | getExternLoc () const |
Gets the location of the extern keyword, if present. More... | |
void | setExternLoc (SourceLocation Loc) |
Sets the location of the extern keyword. More... | |
void | setTemplateKeywordLoc (SourceLocation Loc) |
Sets the location of the template keyword. More... | |
SourceLocation | getTemplateKeywordLoc () const |
Gets the location of the template keyword, if present. More... | |
void | Profile (llvm::FoldingSetNodeID &ID) const |
![]() | |
SourceRange | getSourceRange () const override LLVM_READONLY |
StorageClass | getStorageClass () const |
Returns the storage class as written in the source. More... | |
void | setStorageClass (StorageClass SC) |
void | setTSCSpec (ThreadStorageClassSpecifier TSC) |
ThreadStorageClassSpecifier | getTSCSpec () const |
TLSKind | getTLSKind () const |
bool | hasLocalStorage () const |
hasLocalStorage - Returns true if a variable with function scope is a non-static local variable. More... | |
bool | isStaticLocal () const |
isStaticLocal - Returns true if a variable with function scope is a static local variable. More... | |
bool | hasExternalStorage () const |
Returns true if a variable has extern or private_extern storage. More... | |
bool | hasGlobalStorage () const |
Returns true for all variables that do not have local storage. More... | |
StorageDuration | getStorageDuration () const |
Get the storage duration of this variable, per C++ [basic.stc]. More... | |
LanguageLinkage | getLanguageLinkage () const |
Compute the language linkage. More... | |
bool | isExternC () const |
Determines whether this variable is a variable with external, C linkage. More... | |
bool | isInExternCContext () const |
Determines whether this variable's context is, or is nested within, a C++ extern "C" linkage spec. More... | |
bool | isInExternCXXContext () const |
Determines whether this variable's context is, or is nested within, a C++ extern "C++" linkage spec. More... | |
bool | isLocalVarDecl () const |
isLocalVarDecl - Returns true for local variable declarations other than parameters. More... | |
bool | isLocalVarDeclOrParm () const |
Similar to isLocalVarDecl but also includes parameters. More... | |
bool | isFunctionOrMethodVarDecl () const |
isFunctionOrMethodVarDecl - Similar to isLocalVarDecl, but excludes variables declared in blocks. More... | |
bool | isStaticDataMember () const |
Determines whether this is a static data member. More... | |
VarDecl * | getCanonicalDecl () override |
const VarDecl * | getCanonicalDecl () const |
DefinitionKind | isThisDeclarationADefinition (ASTContext &) const |
Check whether this declaration is a definition. More... | |
DefinitionKind | isThisDeclarationADefinition () const |
DefinitionKind | hasDefinition (ASTContext &) const |
Check whether this variable is defined in this translation unit. More... | |
DefinitionKind | hasDefinition () const |
VarDecl * | getActingDefinition () |
Get the tentative definition that acts as the real definition in a TU. More... | |
const VarDecl * | getActingDefinition () const |
VarDecl * | getDefinition (ASTContext &) |
Get the real (not just tentative) definition for this declaration. More... | |
const VarDecl * | getDefinition (ASTContext &C) const |
VarDecl * | getDefinition () |
const VarDecl * | getDefinition () const |
bool | isOutOfLine () const override |
Determine whether this is or was instantiated from an out-of-line definition of a static data member. More... | |
bool | isFileVarDecl () const |
isFileVarDecl - Returns true for file scoped variable declaration. More... | |
const Expr * | getAnyInitializer () const |
getAnyInitializer - Get the initializer for this variable, no matter which declaration it is attached to. More... | |
const Expr * | getAnyInitializer (const VarDecl *&D) const |
getAnyInitializer - Get the initializer for this variable, no matter which declaration it is attached to. More... | |
bool | hasInit () const |
const Expr * | getInit () const |
Expr * | getInit () |
Stmt ** | getInitAddress () |
Retrieve the address of the initializer expression. More... | |
void | setInit (Expr *I) |
bool | isUsableInConstantExpressions (ASTContext &C) const |
Determine whether this variable's value can be used in a constant expression, according to the relevant language standard. More... | |
EvaluatedStmt * | ensureEvaluatedStmt () const |
Convert the initializer for this declaration to the elaborated EvaluatedStmt form, which contains extra information on the evaluated value of the initializer. More... | |
APValue * | evaluateValue () const |
Attempt to evaluate the value of the initializer attached to this declaration, and produce notes explaining why it cannot be evaluated or is not a constant expression. More... | |
APValue * | evaluateValue (SmallVectorImpl< PartialDiagnosticAt > &Notes) const |
APValue * | getEvaluatedValue () const |
Return the already-evaluated value of this variable's initializer, or NULL if the value is not yet known. More... | |
bool | isInitKnownICE () const |
Determines whether it is already known whether the initializer is an integral constant expression or not. More... | |
bool | isInitICE () const |
Determines whether the initializer is an integral constant expression, or in C++11, whether the initializer is a constant expression. More... | |
bool | checkInitIsICE () const |
Determine whether the value of the initializer attached to this declaration is an integral constant expression. More... | |
void | setInitStyle (InitializationStyle Style) |
InitializationStyle | getInitStyle () const |
The style of initialization for this declaration. More... | |
bool | isDirectInit () const |
Whether the initializer is a direct-initializer (list or call). More... | |
bool | isExceptionVariable () const |
Determine whether this variable is the exception variable in a C++ catch statememt or an Objective-C @catch statement. More... | |
void | setExceptionVariable (bool EV) |
bool | isNRVOVariable () const |
Determine whether this local variable can be used with the named return value optimization (NRVO). More... | |
void | setNRVOVariable (bool NRVO) |
bool | isCXXForRangeDecl () const |
Determine whether this variable is the for-range-declaration in a C++0x for-range statement. More... | |
void | setCXXForRangeDecl (bool FRD) |
bool | isARCPseudoStrong () const |
Determine whether this variable is an ARC pseudo-__strong variable. More... | |
void | setARCPseudoStrong (bool ps) |
bool | isInline () const |
Whether this variable is (C++1z) inline. More... | |
bool | isInlineSpecified () const |
void | setInlineSpecified () |
void | setImplicitlyInline () |
bool | isConstexpr () const |
Whether this variable is (C++11) constexpr. More... | |
void | setConstexpr (bool IC) |
bool | isInitCapture () const |
Whether this variable is the implicit variable for a lambda init-capture. More... | |
void | setInitCapture (bool IC) |
bool | isPreviousDeclInSameBlockScope () const |
Whether this local extern variable declaration's previous declaration was declared in the same block scope. More... | |
void | setPreviousDeclInSameBlockScope (bool Same) |
VarDecl * | getInstantiatedFromStaticDataMember () const |
If this variable is an instantiated static data member of a class template specialization, returns the templated static data member from which it was instantiated. More... | |
TemplateSpecializationKind | getTemplateSpecializationKind () const |
If this variable is an instantiation of a variable template or a static data member of a class template, determine what kind of template specialization or instantiation this is. More... | |
SourceLocation | getPointOfInstantiation () const |
If this variable is an instantiation of a variable template or a static data member of a class template, determine its point of instantiation. More... | |
MemberSpecializationInfo * | getMemberSpecializationInfo () const |
If this variable is an instantiation of a static data member of a class template specialization, retrieves the member specialization information. More... | |
void | setTemplateSpecializationKind (TemplateSpecializationKind TSK, SourceLocation PointOfInstantiation=SourceLocation()) |
For a static data member that was instantiated from a static data member of a class template, set the template specialiation kind. More... | |
void | setInstantiationOfStaticDataMember (VarDecl *VD, TemplateSpecializationKind TSK) |
Specify that this variable is an instantiation of the static data member VD. More... | |
VarTemplateDecl * | getDescribedVarTemplate () const |
Retrieves the variable template that is described by this variable declaration. More... | |
void | setDescribedVarTemplate (VarTemplateDecl *Template) |
![]() | |
TypeSourceInfo * | getTypeSourceInfo () const |
void | setTypeSourceInfo (TypeSourceInfo *TI) |
SourceLocation | getInnerLocStart () const |
getInnerLocStart - Return SourceLocation representing start of source range ignoring outer template declarations. More... | |
void | setInnerLocStart (SourceLocation L) |
SourceLocation | getOuterLocStart () const |
getOuterLocStart - Return SourceLocation representing start of source range taking into account any outer template declarations. More... | |
SourceRange | getSourceRange () const override LLVM_READONLY |
SourceLocation | getLocStart () const LLVM_READONLY |
NestedNameSpecifier * | getQualifier () const |
Retrieve the nested-name-specifier that qualifies the name of this declaration, if it was present in the source. More... | |
NestedNameSpecifierLoc | getQualifierLoc () const |
Retrieve the nested-name-specifier (with source-location information) that qualifies the name of this declaration, if it was present in the source. More... | |
void | setQualifierInfo (NestedNameSpecifierLoc QualifierLoc) |
unsigned | getNumTemplateParameterLists () const |
TemplateParameterList * | getTemplateParameterList (unsigned index) const |
void | setTemplateParameterListsInfo (ASTContext &Context, ArrayRef< TemplateParameterList * > TPLists) |
SourceLocation | getTypeSpecStartLoc () const |
![]() | |
QualType | getType () const |
void | setType (QualType newType) |
bool | isWeak () const |
Determine whether this symbol is weakly-imported, or declared with the weak or weak-ref attr. More... | |
![]() | |
IdentifierInfo * | getIdentifier () const |
getIdentifier - Get the identifier that names this declaration, if there is one. More... | |
StringRef | getName () const |
getName - Get the name of identifier for this declaration as a StringRef. More... | |
std::string | getNameAsString () const |
getNameAsString - Get a human-readable name for the declaration, even if it is one of the special kinds of names (C++ constructor, Objective-C selector, etc). More... | |
void | printName (raw_ostream &os) const |
DeclarationName | getDeclName () const |
getDeclName - Get the actual, stored name of the declaration, which may be a special name. More... | |
void | setDeclName (DeclarationName N) |
Set the name of this declaration. More... | |
void | printQualifiedName (raw_ostream &OS) const |
printQualifiedName - Returns human-readable qualified name for declaration, like A::B::i, for i being member of namespace A::B. More... | |
void | printQualifiedName (raw_ostream &OS, const PrintingPolicy &Policy) const |
std::string | getQualifiedNameAsString () const |
bool | declarationReplaces (NamedDecl *OldD, bool IsKnownNewer=true) const |
Determine whether this declaration, if known to be well-formed within its context, will replace the declaration OldD if introduced into scope. More... | |
bool | hasLinkage () const |
Determine whether this declaration has linkage. More... | |
bool | isHidden () const |
Determine whether this declaration is hidden from name lookup. More... | |
void | setHidden (bool Hide) |
Set whether this declaration is hidden from name lookup. More... | |
bool | isCXXClassMember () const |
Determine whether this declaration is a C++ class member. More... | |
bool | isCXXInstanceMember () const |
Determine whether the given declaration is an instance member of a C++ class. More... | |
Linkage | getLinkageInternal () const |
Determine what kind of linkage this entity has. More... | |
Linkage | getFormalLinkage () const |
Get the linkage from a semantic point of view. More... | |
bool | hasExternalFormalLinkage () const |
True if this decl has external linkage. More... | |
bool | isExternallyVisible () const |
Visibility | getVisibility () const |
Determines the visibility of this entity. More... | |
LinkageInfo | getLinkageAndVisibility () const |
Determines the linkage and visibility of this entity. More... | |
Optional< Visibility > | getExplicitVisibility (ExplicitVisibilityKind kind) const |
If visibility was explicitly specified for this declaration, return that visibility. More... | |
bool | isLinkageValid () const |
True if the computed linkage is valid. More... | |
bool | hasLinkageBeenComputed () const |
True if something has required us to compute the linkage of this declaration. More... | |
NamedDecl * | getUnderlyingDecl () |
Looks through UsingDecls and ObjCCompatibleAliasDecls for the underlying named decl. More... | |
const NamedDecl * | getUnderlyingDecl () const |
NamedDecl * | getMostRecentDecl () |
const NamedDecl * | getMostRecentDecl () const |
ObjCStringFormatFamily | getObjCFStringFormattingFamily () const |
![]() | |
Redeclarable (const ASTContext &Ctx) | |
VarDecl * | getPreviousDecl () |
Return the previous declaration of this declaration or NULL if this is the first declaration. More... | |
const VarDecl * | getPreviousDecl () const |
VarDecl * | getFirstDecl () |
Return the first declaration of this declaration or itself if this is the only declaration. More... | |
const VarDecl * | getFirstDecl () const |
Return the first declaration of this declaration or itself if this is the only declaration. More... | |
bool | isFirstDecl () const |
True if this is the first declaration in its redeclaration chain. More... | |
VarDecl * | getMostRecentDecl () |
Returns the most recent (re)declaration of this declaration. More... | |
const VarDecl * | getMostRecentDecl () const |
Returns the most recent (re)declaration of this declaration. More... | |
void | setPreviousDecl (VarDecl *PrevDecl) |
Set the previous declaration. More... | |
redecl_range | redecls () const |
Returns an iterator range for all the redeclarations of the same decl. More... | |
redecl_iterator | redecls_begin () const |
redecl_iterator | redecls_end () const |
Static Public Member Functions | |
static VarTemplateSpecializationDecl * | Create (ASTContext &Context, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, VarTemplateDecl *SpecializedTemplate, QualType T, TypeSourceInfo *TInfo, StorageClass S, ArrayRef< TemplateArgument > Args) |
static VarTemplateSpecializationDecl * | CreateDeserialized (ASTContext &C, unsigned ID) |
static void | Profile (llvm::FoldingSetNodeID &ID, ArrayRef< TemplateArgument > TemplateArgs, ASTContext &Context) |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
![]() | |
static const char * | getStorageClassSpecifierString (StorageClass SC) |
getStorageClassSpecifierString - Return the string used to specify the storage class SC . More... | |
static VarDecl * | Create (ASTContext &C, DeclContext *DC, SourceLocation StartLoc, SourceLocation IdLoc, IdentifierInfo *Id, QualType T, TypeSourceInfo *TInfo, StorageClass S) |
static VarDecl * | CreateDeserialized (ASTContext &C, unsigned ID) |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
![]() | |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
![]() | |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
![]() | |
static bool | classof (const Decl *D) |
static bool | classofKind (Kind K) |
Friends | |
class | ASTDeclReader |
class | ASTDeclWriter |
Additional Inherited Members | |
![]() | |
enum | InitializationStyle { CInit, CallInit, ListInit } |
Initialization styles. More... | |
enum | TLSKind { TLS_None, TLS_Static, TLS_Dynamic } |
Kinds of thread-local storage. More... | |
enum | DefinitionKind { DeclarationOnly, TentativeDefinition, Definition } |
typedef redeclarable_base::redecl_range | redecl_range |
typedef redeclarable_base::redecl_iterator | redecl_iterator |
![]() | |
enum | ExplicitVisibilityKind { VisibilityForType, VisibilityForValue } |
Kinds of explicit visibility. More... | |
![]() | |
typedef llvm::iterator_range < redecl_iterator > | redecl_range |
![]() | |
enum | { NumParameterIndexBits = 8 } |
enum | DefaultArgKind { DAK_None, DAK_Unparsed, DAK_Uninstantiated, DAK_Normal } |
typedef llvm::PointerUnion < Stmt *, EvaluatedStmt * > | InitType |
typedef Redeclarable< VarDecl > | redeclarable_base |
![]() | |
static DeclLink | PreviousDeclLink (VarDecl *D) |
static DeclLink | LatestDeclLink (const ASTContext &Ctx) |
![]() | |
InitType | Init |
The initializer for this variable or, for a ParmVarDecl, the C++ default argument. More... | |
union { | |
unsigned AllBits | |
VarDeclBitfields VarDeclBits | |
ParmVarDeclBitfields ParmVarDeclBits | |
NonParmVarDeclBitfields NonParmVarDeclBits | |
}; | |
![]() | |
DeclLink | RedeclLink |
Points to the next redeclaration in the chain. More... | |
VarDecl * | First |
Represents a variable template specialization, which refers to a variable template with a given set of template arguments.
Variable template specializations represent both explicit specializations of variable templates, as in the example below, and implicit instantiations of variable templates.
Definition at line 2374 of file DeclTemplate.h.
|
protected |
Definition at line 1054 of file DeclTemplate.cpp.
Referenced by Create(), and CreateDeserialized().
|
explicitprotected |
Definition at line 1064 of file DeclTemplate.cpp.
Definition at line 2607 of file DeclTemplate.h.
References classofKind().
Definition at line 2608 of file DeclTemplate.h.
Referenced by classof().
|
static |
Definition at line 1070 of file DeclTemplate.cpp.
References Context, and VarTemplateSpecializationDecl().
Referenced by clang::Sema::ActOnVarTemplateSpecialization(), and clang::ASTNodeImporter::VisitVarTemplateSpecializationDecl().
|
static |
Definition at line 1080 of file DeclTemplate.cpp.
References ID, and VarTemplateSpecializationDecl().
|
inline |
Gets the location of the extern keyword, if present.
Definition at line 2574 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitVarTemplateSpecializationDecl().
|
inline |
If this variable template specialization is an instantiation of a template (rather than an explicit specialization), return the variable template or variable template partial specialization from which it was instantiated.
Definition at line 2500 of file DeclTemplate.h.
References getSpecializationKind(), getSpecializedTemplateOrPartial(), and clang::isTemplateInstantiation().
|
inline |
Definition at line 2444 of file DeclTemplate.h.
|
overridevirtual |
getNameForDiagnostic - Appends a human-readable name for this declaration into the given stream.
This is the method invoked by Sema when displaying a NamedDecl in a diagnostic. It does not necessarily produce the same result as printName(); for example, class template specializations are printed with their template arguments.
Reimplemented from clang::NamedDecl.
Definition at line 1085 of file DeclTemplate.cpp.
References clang::TemplateArgumentList::asArray(), clang::NamedDecl::getNameForDiagnostic(), getTemplateArgs(), and clang::PrintTemplateArgumentList().
|
inline |
Get the point of instantiation (if any), or null if none.
Definition at line 2486 of file DeclTemplate.h.
Referenced by clang::Sema::ActOnVarTemplateSpecialization(), clang::Sema::completeExprArrayBound(), and clang::ASTDeclWriter::VisitVarTemplateSpecializationDecl().
|
inline |
Determine the kind of specialization that this declaration represents.
Definition at line 2465 of file DeclTemplate.h.
Referenced by clang::Sema::ActOnVarTemplateSpecialization(), getInstantiatedFrom(), isExplicitSpecialization(), clang::ASTDeclWriter::VisitVarTemplateSpecializationDecl(), and clang::ASTNodeImporter::VisitVarTemplateSpecializationDecl().
VarTemplateDecl * VarTemplateSpecializationDecl::getSpecializedTemplate | ( | ) | const |
Retrieve the template that this specialization specializes.
Definition at line 1094 of file DeclTemplate.cpp.
Referenced by FinishTemplateArgumentDeduction(), clang::Sema::getMoreSpecializedPartialSpecialization(), clang::Sema::InstantiateVariableDefinition(), mergeTemplateLV(), clang::ASTDeclWriter::VisitVarTemplateSpecializationDecl(), clang::ASTNodeImporter::VisitVarTemplateSpecializationDecl(), and clang::TemplateDeclInstantiator::VisitVarTemplateSpecializationDecl().
|
inline |
Retrieve the variable template or variable template partial specialization which was specialized by this.
Definition at line 2511 of file DeclTemplate.h.
Referenced by getInstantiatedFrom(), clang::Sema::getTemplateInstantiationArgs(), clang::Sema::InstantiateVariableDefinition(), and clang::ASTDeclWriter::VisitVarTemplateSpecializationDecl().
|
inline |
Retrieve the template arguments of the variable template specialization.
Definition at line 2454 of file DeclTemplate.h.
Referenced by clang::Sema::DeduceTemplateArguments(), clang::Sema::getMoreSpecializedPartialSpecialization(), getNameForDiagnostic(), getTemplateInstantiationArgs(), clang::Sema::InstantiateVariableDefinition(), mergeTemplateLV(), clang::ASTDeclWriter::VisitVarTemplateSpecializationDecl(), and clang::ASTNodeImporter::VisitVarTemplateSpecializationDecl().
|
inline |
Definition at line 2459 of file DeclTemplate.h.
Referenced by DoMarkVarDeclReferenced(), clang::Sema::InstantiateVariableDefinition(), clang::ASTNodeImporter::VisitVarTemplateSpecializationDecl(), and clang::TemplateDeclInstantiator::VisitVarTemplateSpecializationDecl().
|
inline |
Retrieve the set of template arguments that should be used to instantiate the initializer of the variable template or variable template partial specialization from which this variable template specialization was instantiated.
Definition at line 2530 of file DeclTemplate.h.
References getTemplateArgs().
Referenced by clang::Sema::InstantiateVariableDefinition(), and clang::ASTDeclWriter::VisitVarTemplateSpecializationDecl().
|
inline |
Gets the location of the template keyword, if present.
Definition at line 2591 of file DeclTemplate.h.
Referenced by clang::Sema::BuildDeclRefExpr(), and clang::ASTDeclWriter::VisitVarTemplateSpecializationDecl().
|
inline |
Gets the type of this specialization as it was written by the user, if it was so written.
Definition at line 2569 of file DeclTemplate.h.
Referenced by clang::ASTDeclWriter::VisitVarTemplateSpecializationDecl().
|
inline |
True if this declaration is an explicit specialization, explicit instantiation declaration, or explicit instantiation definition.
Definition at line 2476 of file DeclTemplate.h.
References clang::VarDecl::getTemplateSpecializationKind(), and clang::isTemplateExplicitInstantiationOrSpecialization().
Referenced by shouldConsiderTemplateVisibility().
|
inline |
Definition at line 2469 of file DeclTemplate.h.
References getSpecializationKind(), and clang::TSK_ExplicitSpecialization.
Referenced by shouldConsiderTemplateVisibility().
|
inline |
Definition at line 2595 of file DeclTemplate.h.
References clang::TemplateArgumentList::asArray().
|
inlinestatic |
Definition at line 2599 of file DeclTemplate.h.
|
inline |
Sets the location of the extern keyword.
Definition at line 2578 of file DeclTemplate.h.
|
inline |
Note that this variable template specialization is actually an instantiation of the given variable template partial specialization whose template arguments have been deduced.
Definition at line 2541 of file DeclTemplate.h.
Referenced by clang::Sema::CheckVarTemplateId().
|
inline |
Note that this variable template specialization is an instantiation of the given variable template.
Definition at line 2554 of file DeclTemplate.h.
|
inline |
Definition at line 2490 of file DeclTemplate.h.
References clang::SourceLocation::isValid().
Referenced by clang::Sema::completeExprArrayBound().
|
inline |
Definition at line 2481 of file DeclTemplate.h.
Referenced by clang::Sema::ActOnVarTemplateSpecialization(), clang::VarTemplatePartialSpecializationDecl::Create(), and clang::ASTNodeImporter::VisitVarTemplateSpecializationDecl().
void VarTemplateSpecializationDecl::setTemplateArgsInfo | ( | const TemplateArgumentListInfo & | ArgsInfo | ) |
Definition at line 1101 of file DeclTemplate.cpp.
References clang::TemplateArgumentListInfo::addArgument(), clang::TemplateArgumentListInfo::arguments(), clang::TemplateArgumentListInfo::getLAngleLoc(), clang::TemplateArgumentListInfo::getRAngleLoc(), clang::TemplateArgumentListInfo::setLAngleLoc(), and clang::TemplateArgumentListInfo::setRAngleLoc().
Referenced by clang::Sema::ActOnVarTemplateSpecialization(), and clang::ASTNodeImporter::VisitVarTemplateSpecializationDecl().
|
inline |
Sets the location of the template keyword.
Definition at line 2585 of file DeclTemplate.h.
Referenced by clang::Sema::ActOnVarTemplateSpecialization().
|
inline |
Sets the type of this specialization as it was written by the user.
Definition at line 2562 of file DeclTemplate.h.
Referenced by clang::TemplateDeclInstantiator::InstantiateVarTemplatePartialSpecialization().
|
friend |
Definition at line 2613 of file DeclTemplate.h.
|
friend |
Definition at line 2614 of file DeclTemplate.h.