clang  3.7.0
Public Types | Public Member Functions | Static Public Member Functions | List of all members
clang::ASTTemplateKWAndArgsInfo Struct Reference

Extends ASTTemplateArgumentListInfo with the source location information for the template keyword; this is used as part of the representation of qualified identifiers, such as S<T>::template apply<T>. More...

#include <TemplateBase.h>

Inheritance diagram for clang::ASTTemplateKWAndArgsInfo:
[legend]
Collaboration diagram for clang::ASTTemplateKWAndArgsInfo:
[legend]

Public Types

typedef ASTTemplateArgumentListInfo Base
 

Public Member Functions

SourceLocation getTemplateKeywordLoc () const
 Get the source location of the template keyword. More...
 
void setTemplateKeywordLoc (SourceLocation TemplateKWLoc)
 Sets the source location of the template keyword. More...
 
void initializeFrom (SourceLocation TemplateKWLoc, const TemplateArgumentListInfo &List)
 
void initializeFrom (SourceLocation TemplateKWLoc, const TemplateArgumentListInfo &List, bool &Dependent, bool &InstantiationDependent, bool &ContainsUnexpandedParameterPack)
 
void initializeFrom (SourceLocation TemplateKWLoc)
 
- Public Member Functions inherited from clang::ASTTemplateArgumentListInfo
TemplateArgumentLocgetTemplateArgs ()
 Retrieve the template arguments. More...
 
const TemplateArgumentLocgetTemplateArgs () const
 Retrieve the template arguments. More...
 
const TemplateArgumentLocoperator[] (unsigned I) const
 
void initializeFrom (const TemplateArgumentListInfo &List)
 
void initializeFrom (const TemplateArgumentListInfo &List, bool &Dependent, bool &InstantiationDependent, bool &ContainsUnexpandedParameterPack)
 
void copyInto (TemplateArgumentListInfo &List) const
 

Static Public Member Functions

static const
ASTTemplateKWAndArgsInfo
Create (ASTContext &C, SourceLocation TemplateKWLoc, const TemplateArgumentListInfo &List)
 
static std::size_t sizeFor (unsigned NumTemplateArgs)
 
- Static Public Member Functions inherited from clang::ASTTemplateArgumentListInfo
static const
ASTTemplateArgumentListInfo
Create (ASTContext &C, const TemplateArgumentListInfo &List)
 
static std::size_t sizeFor (unsigned NumTemplateArgs)
 

Additional Inherited Members

- Public Attributes inherited from clang::ASTTemplateArgumentListInfo
SourceLocation LAngleLoc
 The source location of the left angle bracket ('<'). More...
 
SourceLocation RAngleLoc
 The source location of the right angle bracket ('>'). More...
 
union {
   unsigned   NumTemplateArgs
 The number of template arguments in TemplateArgs. The actual template arguments (if any) are stored after the ExplicitTemplateArgumentList structure. More...
 
   llvm::AlignedCharArray
< llvm::AlignOf
< TemplateArgumentLoc >
::Alignment, 1 >   Aligner
 
}; 
 

Detailed Description

Extends ASTTemplateArgumentListInfo with the source location information for the template keyword; this is used as part of the representation of qualified identifiers, such as S<T>::template apply<T>.

Definition at line 611 of file TemplateBase.h.

Member Typedef Documentation

Definition at line 612 of file TemplateBase.h.

Member Function Documentation

static const ASTTemplateKWAndArgsInfo* clang::ASTTemplateKWAndArgsInfo::Create ( ASTContext C,
SourceLocation  TemplateKWLoc,
const TemplateArgumentListInfo List 
)
static
SourceLocation clang::ASTTemplateKWAndArgsInfo::getTemplateKeywordLoc ( ) const
inline
void ASTTemplateKWAndArgsInfo::initializeFrom ( SourceLocation  TemplateKWLoc,
const TemplateArgumentListInfo List 
)
void ASTTemplateKWAndArgsInfo::initializeFrom ( SourceLocation  TemplateKWLoc,
const TemplateArgumentListInfo List,
bool Dependent,
bool InstantiationDependent,
bool ContainsUnexpandedParameterPack 
)

Definition at line 589 of file TemplateBase.cpp.

void ASTTemplateKWAndArgsInfo::initializeFrom ( SourceLocation  TemplateKWLoc)
void clang::ASTTemplateKWAndArgsInfo::setTemplateKeywordLoc ( SourceLocation  TemplateKWLoc)
inline

Sets the source location of the template keyword.

Definition at line 624 of file TemplateBase.h.

Referenced by initializeFrom().

std::size_t ASTTemplateKWAndArgsInfo::sizeFor ( unsigned  NumTemplateArgs)
static

The documentation for this struct was generated from the following files: