clang API Documentation

Public Member Functions
clang::TemplateArgumentLoc Class Reference

#include <TemplateBase.h>

List of all members.

Public Member Functions

 TemplateArgumentLoc ()
 TemplateArgumentLoc (const TemplateArgument &Argument, TemplateArgumentLocInfo Opaque)
 TemplateArgumentLoc (const TemplateArgument &Argument, TypeSourceInfo *TInfo)
 TemplateArgumentLoc (const TemplateArgument &Argument, Expr *E)
 TemplateArgumentLoc (const TemplateArgument &Argument, NestedNameSpecifierLoc QualifierLoc, SourceLocation TemplateNameLoc, SourceLocation EllipsisLoc=SourceLocation())
SourceLocation getLocation () const
 
  • Fetches the primary location of the argument.

SourceRange getSourceRange () const LLVM_READONLY
 
  • Fetches the full source range of the argument.

const TemplateArgumentgetArgument () const
TemplateArgumentLocInfo getLocInfo () const
TypeSourceInfogetTypeSourceInfo () const
ExprgetSourceExpression () const
ExprgetSourceDeclExpression () const
ExprgetSourceNullPtrExpression () const
ExprgetSourceIntegralExpression () const
NestedNameSpecifierLoc getTemplateQualifierLoc () const
SourceLocation getTemplateNameLoc () const
SourceLocation getTemplateEllipsisLoc () const

Detailed Description

Location wrapper for a TemplateArgument. TemplateArgument is to TemplateArgumentLoc as Type is to TypeLoc.

Definition at line 423 of file TemplateBase.h.


Constructor & Destructor Documentation

Definition at line 428 of file TemplateBase.h.

Definition at line 430 of file TemplateBase.h.

clang::TemplateArgumentLoc::TemplateArgumentLoc ( const TemplateArgument Argument,
Expr E 
) [inline]
clang::TemplateArgumentLoc::TemplateArgumentLoc ( const TemplateArgument Argument,
NestedNameSpecifierLoc  QualifierLoc,
SourceLocation  TemplateNameLoc,
SourceLocation  EllipsisLoc = SourceLocation() 
) [inline]

Member Function Documentation

Definition at line 470 of file TemplateBase.h.

Referenced by clang::ASTWriter::AddTemplateArgumentLoc().

Definition at line 489 of file TemplateBase.h.

References clang::TemplateArgument::getKind(), and clang::TemplateArgument::NullPtr.

Referenced by getSourceRange().


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