clang 24.0.0git
clang::TemplateArgumentLocInfo Struct Reference

Location information for a TemplateArgument. More...

#include "clang/AST/TemplateBase.h"

Classes

struct  TemplateTemplateArgLocInfo

Public Member Functions

TemplateTemplateArgLocInfogetTemplate () const
 TemplateArgumentLocInfo ()
 TemplateArgumentLocInfo (TypeSourceInfo *Declarator)
 TemplateArgumentLocInfo (Expr *E)
 TemplateArgumentLocInfo (ASTContext &Ctx, SourceLocation Loc)
 TemplateArgumentLocInfo (ASTContext &Ctx, SourceLocation TemplateKwLoc, NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateNameLoc, SourceLocation EllipsisLoc)
TypeSourceInfogetAsTypeSourceInfo () const
ExprgetAsExpr () const
SourceLocation getTemplateKwLoc () const
SourceLocation getTemplateNameLoc () const
SourceLocation getTemplateEllipsisLoc () const
bool isNull () const
bool isTrivial () const
SourceLocation getTrivialLoc () const

Detailed Description

Location information for a TemplateArgument.

Definition at line 482 of file TemplateBase.h.

Constructor & Destructor Documentation

◆ TemplateArgumentLocInfo() [1/5]

clang::TemplateArgumentLocInfo::TemplateArgumentLocInfo ( )
inline

Definition at line 494 of file TemplateBase.h.

◆ TemplateArgumentLocInfo() [2/5]

clang::TemplateArgumentLocInfo::TemplateArgumentLocInfo ( TypeSourceInfo * Declarator)
inline

Definition at line 495 of file TemplateBase.h.

◆ TemplateArgumentLocInfo() [3/5]

clang::TemplateArgumentLocInfo::TemplateArgumentLocInfo ( Expr * E)
inline

Definition at line 497 of file TemplateBase.h.

◆ TemplateArgumentLocInfo() [4/5]

clang::TemplateArgumentLocInfo::TemplateArgumentLocInfo ( ASTContext & Ctx,
SourceLocation Loc )

Definition at line 776 of file TemplateBase.cpp.

References clang::SourceLocation::getRawEncoding().

◆ TemplateArgumentLocInfo() [5/5]

clang::TemplateArgumentLocInfo::TemplateArgumentLocInfo ( ASTContext & Ctx,
SourceLocation TemplateKwLoc,
NestedNameSpecifierLoc QualifierLoc,
SourceLocation TemplateNameLoc,
SourceLocation EllipsisLoc )

Member Function Documentation

◆ getAsExpr()

Expr * clang::TemplateArgumentLocInfo::getAsExpr ( ) const
inline

◆ getAsTypeSourceInfo()

TypeSourceInfo * clang::TemplateArgumentLocInfo::getAsTypeSourceInfo ( ) const
inline

◆ getTemplate()

TemplateTemplateArgLocInfo * clang::TemplateArgumentLocInfo::getTemplate ( ) const
inline

Definition at line 490 of file TemplateBase.h.

References clang::cast().

Referenced by getTemplateEllipsisLoc(), getTemplateKwLoc(), and getTemplateNameLoc().

◆ getTemplateEllipsisLoc()

SourceLocation clang::TemplateArgumentLocInfo::getTemplateEllipsisLoc ( ) const
inline

◆ getTemplateKwLoc()

SourceLocation clang::TemplateArgumentLocInfo::getTemplateKwLoc ( ) const
inline

◆ getTemplateNameLoc()

SourceLocation clang::TemplateArgumentLocInfo::getTemplateNameLoc ( ) const
inline

◆ getTrivialLoc()

SourceLocation clang::TemplateArgumentLocInfo::getTrivialLoc ( ) const
inline

Definition at line 531 of file TemplateBase.h.

References clang::cast(), and clang::SourceLocation::getFromRawEncoding().

◆ isNull()

bool clang::TemplateArgumentLocInfo::isNull ( ) const
inline

Definition at line 527 of file TemplateBase.h.

◆ isTrivial()

bool clang::TemplateArgumentLocInfo::isTrivial ( ) const
inline

Definition at line 529 of file TemplateBase.h.

References clang::isa().


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