clang  6.0.0svn
Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
clang::ASTTemplateArgumentListInfo Struct Referencefinal

Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>". More...

#include "clang/AST/TemplateBase.h"

Inheritance diagram for clang::ASTTemplateArgumentListInfo:
Inheritance graph
Collaboration diagram for clang::ASTTemplateArgumentListInfo:
Collaboration graph

Public Member Functions

const TemplateArgumentLocgetTemplateArgs () const
 Retrieve the template arguments. More...
llvm::ArrayRef< TemplateArgumentLocarguments () const
const TemplateArgumentLocoperator[] (unsigned I) const

Static Public Member Functions

static const ASTTemplateArgumentListInfoCreate (ASTContext &C, const TemplateArgumentListInfo &List)

Public Attributes

SourceLocation LAngleLoc
 The source location of the left angle bracket ('<'). More...
SourceLocation RAngleLoc
 The source location of the right angle bracket ('>'). More...
unsigned NumTemplateArgs
 The number of template arguments in TemplateArgs. More...


class ASTNodeImporter

Detailed Description

Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>".

This is safe to be used inside an AST node, in contrast with TemplateArgumentListInfo.

Definition at line 573 of file TemplateBase.h.

Member Function Documentation

◆ arguments()

llvm::ArrayRef<TemplateArgumentLoc> clang::ASTTemplateArgumentListInfo::arguments ( ) const

Definition at line 597 of file TemplateBase.h.

◆ Create()

const ASTTemplateArgumentListInfo * ASTTemplateArgumentListInfo::Create ( ASTContext C,
const TemplateArgumentListInfo List 

◆ getTemplateArgs()

const TemplateArgumentLoc* clang::ASTTemplateArgumentListInfo::getTemplateArgs ( ) const

◆ operator[]()

const TemplateArgumentLoc& clang::ASTTemplateArgumentListInfo::operator[] ( unsigned  I) const

Definition at line 601 of file TemplateBase.h.

Friends And Related Function Documentation

◆ ASTNodeImporter

friend class ASTNodeImporter

Definition at line 578 of file TemplateBase.h.

Member Data Documentation

◆ LAngleLoc

SourceLocation clang::ASTTemplateArgumentListInfo::LAngleLoc

◆ NumTemplateArgs

unsigned clang::ASTTemplateArgumentListInfo::NumTemplateArgs

◆ RAngleLoc

SourceLocation clang::ASTTemplateArgumentListInfo::RAngleLoc

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