clang  15.0.0git
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

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

Static Public Member Functions

static const ASTTemplateArgumentListInfoCreate (const 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 612 of file TemplateBase.h.

Member Function Documentation

◆ arguments()

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

◆ Create()

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

◆ getLAngleLoc()

SourceLocation clang::ASTTemplateArgumentListInfo::getLAngleLoc ( ) const

Definition at line 631 of file TemplateBase.h.

◆ getNumTemplateArgs()

unsigned clang::ASTTemplateArgumentListInfo::getNumTemplateArgs ( ) const

Definition at line 638 of file TemplateBase.h.

◆ getRAngleLoc()

SourceLocation clang::ASTTemplateArgumentListInfo::getRAngleLoc ( ) const

Definition at line 632 of file TemplateBase.h.

◆ getTemplateArgs()

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

Retrieve the template arguments.

Definition at line 635 of file TemplateBase.h.

Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo().

◆ operator[]()

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

Definition at line 644 of file TemplateBase.h.

Friends And Related Function Documentation

◆ ASTNodeImporter

friend class ASTNodeImporter

Definition at line 616 of file TemplateBase.h.

Member Data Documentation

◆ LAngleLoc

SourceLocation clang::ASTTemplateArgumentListInfo::LAngleLoc

◆ NumTemplateArgs

unsigned clang::ASTTemplateArgumentListInfo::NumTemplateArgs

The number of template arguments in TemplateArgs.

Definition at line 629 of file TemplateBase.h.

Referenced by clang::ASTRecordWriter::AddASTTemplateArgumentListInfo(), and clang::ASTDeclWriter::VisitFunctionDecl().

◆ RAngleLoc

SourceLocation clang::ASTTemplateArgumentListInfo::RAngleLoc

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