clang API Documentation
#include <TemplateBase.h>
Location wrapper for a TemplateArgument. TemplateArgument is to TemplateArgumentLoc as Type is to TypeLoc.
Definition at line 423 of file TemplateBase.h.
clang::TemplateArgumentLoc::TemplateArgumentLoc | ( | ) | [inline] |
Definition at line 428 of file TemplateBase.h.
clang::TemplateArgumentLoc::TemplateArgumentLoc | ( | const TemplateArgument & | Argument, |
TemplateArgumentLocInfo | Opaque | ||
) | [inline] |
Definition at line 430 of file TemplateBase.h.
clang::TemplateArgumentLoc::TemplateArgumentLoc | ( | const TemplateArgument & | Argument, |
TypeSourceInfo * | TInfo | ||
) | [inline] |
Definition at line 435 of file TemplateBase.h.
References clang::TemplateArgument::getKind(), and clang::TemplateArgument::Type.
clang::TemplateArgumentLoc::TemplateArgumentLoc | ( | const TemplateArgument & | Argument, |
Expr * | E | ||
) | [inline] |
Definition at line 440 of file TemplateBase.h.
References clang::TemplateArgument::Expression, and clang::TemplateArgument::getKind().
clang::TemplateArgumentLoc::TemplateArgumentLoc | ( | const TemplateArgument & | Argument, |
NestedNameSpecifierLoc | QualifierLoc, | ||
SourceLocation | TemplateNameLoc, | ||
SourceLocation | EllipsisLoc = SourceLocation() |
||
) | [inline] |
Definition at line 445 of file TemplateBase.h.
References clang::TemplateArgument::getKind(), clang::TemplateArgument::Template, and clang::TemplateArgument::TemplateExpansion.
const TemplateArgument& clang::TemplateArgumentLoc::getArgument | ( | ) | const [inline] |
Definition at line 466 of file TemplateBase.h.
Referenced by clang::Sema::ActOnTemplateTemplateParameter(), clang::ASTWriter::AddTemplateArgumentLoc(), clang::Sema::CheckTemplateArgument(), clang::Sema::CheckTemplateTypeArgument(), clang::Sema::DiagnoseUnexpandedParameterPack(), clang::comments::DeclInfo::fill(), FinishTemplateArgumentDeduction(), clang::Sema::FinishTemplateArgumentDeduction(), clang::Sema::getTemplateArgumentPackExpansionPattern(), clang::TemplateTemplateParmDecl::hasDefaultArgument(), clang::TreeTransform< Derived >::RebuildPackExpansion(), SubstDefaultTemplateArgument(), clang::TreeTransform< Derived >::TransformTemplateArgument(), clang::TreeTransform< Derived >::TransformTemplateArguments(), and clang::RecursiveASTVisitor< Derived >::TraverseTemplateArgumentLoc().
SourceLocation clang::TemplateArgumentLoc::getLocation | ( | ) | const [inline] |
Definition at line 455 of file TemplateBase.h.
References clang::TemplateArgument::getKind(), clang::TemplateArgument::Template, and clang::TemplateArgument::TemplateExpansion.
Referenced by clang::Sema::ActOnClassTemplateSpecialization(), clang::Sema::ActOnTemplateTemplateParameter(), clang::Sema::CheckTemplateArgument(), clang::Sema::CheckTemplateParameterList(), and clang::Sema::DiagnoseUnexpandedParameterPack().
TemplateArgumentLocInfo clang::TemplateArgumentLoc::getLocInfo | ( | ) | const [inline] |
Definition at line 470 of file TemplateBase.h.
Referenced by clang::ASTWriter::AddTemplateArgumentLoc().
Expr* clang::TemplateArgumentLoc::getSourceDeclExpression | ( | ) | const [inline] |
Definition at line 484 of file TemplateBase.h.
References clang::TemplateArgument::Declaration, and clang::TemplateArgument::getKind().
Referenced by getSourceRange().
Expr* clang::TemplateArgumentLoc::getSourceExpression | ( | ) | const [inline] |
Definition at line 479 of file TemplateBase.h.
References clang::TemplateArgument::Expression, and clang::TemplateArgument::getKind().
Referenced by getSourceRange(), clang::TreeTransform< Derived >::RebuildPackExpansion(), clang::TreeTransform< Derived >::TransformTemplateArgument(), and clang::RecursiveASTVisitor< Derived >::TraverseTemplateArgumentLoc().
Expr* clang::TemplateArgumentLoc::getSourceIntegralExpression | ( | ) | const [inline] |
Definition at line 494 of file TemplateBase.h.
References clang::TemplateArgument::getKind(), and clang::TemplateArgument::Integral.
Referenced by getSourceRange().
Expr* clang::TemplateArgumentLoc::getSourceNullPtrExpression | ( | ) | const [inline] |
Definition at line 489 of file TemplateBase.h.
References clang::TemplateArgument::getKind(), and clang::TemplateArgument::NullPtr.
Referenced by getSourceRange().
Definition at line 413 of file TemplateBase.cpp.
References clang::TemplateArgument::Declaration, clang::TemplateArgument::Expression, clang::TemplateArgument::getKind(), getSourceDeclExpression(), getSourceExpression(), getSourceIntegralExpression(), getSourceNullPtrExpression(), clang::Stmt::getSourceRange(), getTemplateEllipsisLoc(), getTemplateNameLoc(), getTemplateQualifierLoc(), getTypeSourceInfo(), clang::TemplateArgument::Integral, clang::TemplateArgument::Null, clang::TemplateArgument::NullPtr, clang::TemplateArgument::Pack, clang::TemplateArgument::Template, clang::TemplateArgument::TemplateExpansion, and clang::TemplateArgument::Type.
Referenced by clang::Sema::ActOnClassTemplateSpecialization(), clang::Sema::ActOnTemplateTemplateParameter(), clang::Sema::CheckTemplateArgument(), clang::Sema::CheckTemplateParameterList(), clang::Sema::CheckTemplateTypeArgument(), clang::TemplateTemplateParmDecl::getSourceRange(), isEnableIf(), and clang::TreeTransform< Derived >::TransformTemplateArguments().
SourceLocation clang::TemplateArgumentLoc::getTemplateEllipsisLoc | ( | ) | const [inline] |
Definition at line 511 of file TemplateBase.h.
References clang::TemplateArgument::getKind(), and clang::TemplateArgument::TemplateExpansion.
Referenced by clang::Sema::CheckTemplateArgument(), getSourceRange(), and clang::Sema::getTemplateArgumentPackExpansionPattern().
SourceLocation clang::TemplateArgumentLoc::getTemplateNameLoc | ( | ) | const [inline] |
Definition at line 505 of file TemplateBase.h.
References clang::TemplateArgument::getKind(), clang::TemplateArgument::Template, and clang::TemplateArgument::TemplateExpansion.
Referenced by clang::Sema::CheckTemplateArgument(), clang::Sema::CheckTemplateArgumentList(), getSourceRange(), clang::Sema::getTemplateArgumentPackExpansionPattern(), clang::TreeTransform< Derived >::RebuildPackExpansion(), SubstDefaultTemplateArgument(), clang::Sema::SubstDefaultTemplateArgumentIfAvailable(), and clang::TreeTransform< Derived >::TransformTemplateArgument().
NestedNameSpecifierLoc clang::TemplateArgumentLoc::getTemplateQualifierLoc | ( | ) | const [inline] |
Definition at line 499 of file TemplateBase.h.
References clang::TemplateArgument::getKind(), clang::TemplateArgument::Template, and clang::TemplateArgument::TemplateExpansion.
Referenced by clang::Sema::CheckTemplateArgument(), getSourceRange(), clang::Sema::getTemplateArgumentPackExpansionPattern(), clang::TreeTransform< Derived >::RebuildPackExpansion(), SubstDefaultTemplateArgument(), clang::Sema::SubstDefaultTemplateArgumentIfAvailable(), clang::TreeTransform< Derived >::TransformTemplateArgument(), and clang::RecursiveASTVisitor< Derived >::TraverseTemplateArgumentLoc().
TypeSourceInfo* clang::TemplateArgumentLoc::getTypeSourceInfo | ( | ) | const [inline] |
Definition at line 474 of file TemplateBase.h.
References clang::TemplateArgument::getKind(), and clang::TemplateArgument::Type.
Referenced by clang::Sema::CheckTemplateTypeArgument(), clang::comments::DeclInfo::fill(), getSourceRange(), clang::Sema::getTemplateArgumentPackExpansionPattern(), clang::TreeTransform< Derived >::RebuildPackExpansion(), clang::TreeTransform< Derived >::TransformTemplateArgument(), and clang::RecursiveASTVisitor< Derived >::TraverseTemplateArgumentLoc().