clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions
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:
Inheritance graph
[legend]
Collaboration diagram for clang::ASTTemplateKWAndArgsInfo:
Collaboration graph
[legend]

List of all members.

Public Types

typedef ASTTemplateArgumentListInfo Base

Public Member Functions

SourceLocation getTemplateKeywordLoc () const
 Get the source location of the template keyword.
void setTemplateKeywordLoc (SourceLocation TemplateKWLoc)
 Sets the source location of the template keyword.
void initializeFrom (SourceLocation TemplateKWLoc, const TemplateArgumentListInfo &List)
void initializeFrom (SourceLocation TemplateKWLoc, const TemplateArgumentListInfo &List, bool &Dependent, bool &InstantiationDependent, bool &ContainsUnexpandedParameterPack)
void initializeFrom (SourceLocation TemplateKWLoc)

Static Public Member Functions

static const
ASTTemplateKWAndArgsInfo
Create (ASTContext &C, SourceLocation TemplateKWLoc, const TemplateArgumentListInfo &List)
static std::size_t sizeFor (unsigned NumTemplateArgs)

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]
void ASTTemplateKWAndArgsInfo::initializeFrom ( SourceLocation  TemplateKWLoc,
const TemplateArgumentListInfo List,
bool Dependent,
bool InstantiationDependent,
bool ContainsUnexpandedParameterPack 
)

Definition at line 574 of file TemplateBase.cpp.

Sets the source location of the template keyword.

Definition at line 624 of file TemplateBase.h.

Referenced by initializeFrom().


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