struct ASTTemplateKWAndArgsInfo

Declaration

struct ASTTemplateKWAndArgsInfo { /* full declaration omitted */ };

Description

Represents an explicit template argument list in C++, e.g., the "<int>" in "sort<int>". It is intended to be used as a trailing object on AST nodes, and as such, doesn't contain the array of TemplateArgumentLoc itself, but expects the containing object to also provide storage for that.

Declared at: clang/include/clang/AST/TemplateBase.h:666

Member Variables

public clang::SourceLocation LAngleLoc
The source location of the left angle bracket (' < ').
public clang::SourceLocation RAngleLoc
The source location of the right angle bracket ('>').
public clang::SourceLocation TemplateKWLoc
The source location of the template keyword; this is used as part of the representation of qualified identifiers, such as S <T >::template apply <T >. Will be empty if this expression does not have a template keyword.
public unsigned int NumTemplateArgs
The number of template arguments in TemplateArgs.

Method Overview

  • public void copyInto(const clang::TemplateArgumentLoc * ArgArray, clang::TemplateArgumentListInfo & List) const
  • public void initializeFrom(clang::SourceLocation TemplateKWLoc, const clang::TemplateArgumentListInfo & List, clang::TemplateArgumentLoc * OutArgArray)
  • public void initializeFrom(clang::SourceLocation TemplateKWLoc, const clang::TemplateArgumentListInfo & List, clang::TemplateArgumentLoc * OutArgArray, clang::TemplateArgumentDependence & Deps)
  • public void initializeFrom(clang::SourceLocation TemplateKWLoc)

Methods

void copyInto(
    const clang::TemplateArgumentLoc* ArgArray,
    clang::TemplateArgumentListInfo& List) const

Declared at: clang/include/clang/AST/TemplateBase.h:694

Parameters

const clang::TemplateArgumentLoc* ArgArray
clang::TemplateArgumentListInfo& List

void initializeFrom(
    clang::SourceLocation TemplateKWLoc,
    const clang::TemplateArgumentListInfo& List,
    clang::TemplateArgumentLoc* OutArgArray)

Declared at: clang/include/clang/AST/TemplateBase.h:682

Parameters

clang::SourceLocation TemplateKWLoc
const clang::TemplateArgumentListInfo& List
clang::TemplateArgumentLoc* OutArgArray

void initializeFrom(
    clang::SourceLocation TemplateKWLoc,
    const clang::TemplateArgumentListInfo& List,
    clang::TemplateArgumentLoc* OutArgArray,
    clang::TemplateArgumentDependence& Deps)

Declared at: clang/include/clang/AST/TemplateBase.h:688

Parameters

clang::SourceLocation TemplateKWLoc
const clang::TemplateArgumentListInfo& List
clang::TemplateArgumentLoc* OutArgArray
clang::TemplateArgumentDependence& Deps

void initializeFrom(
    clang::SourceLocation TemplateKWLoc)

Declared at: clang/include/clang/AST/TemplateBase.h:692

Parameters

clang::SourceLocation TemplateKWLoc