clang API Documentation
Represents the result of substituting a type for a template type parameter. More...
#include <Type.h>
Public Member Functions | |
const TemplateTypeParmType * | getReplacedParameter () const |
Gets the template parameter that was substituted for. | |
QualType | getReplacementType () const |
bool | isSugared () const |
QualType | desugar () const |
void | Profile (llvm::FoldingSetNodeID &ID) |
Static Public Member Functions | |
static void | Profile (llvm::FoldingSetNodeID &ID, const TemplateTypeParmType *Replaced, QualType Replacement) |
static bool | classof (const Type *T) |
Friends | |
class | ASTContext |
Represents the result of substituting a type for a template type parameter.
Within an instantiated template, all template type parameters have been replaced with these. They are used solely to record that a type was originally written as a template type parameter; therefore they are never canonical.
static bool clang::SubstTemplateTypeParmType::classof | ( | const Type * | T | ) | [inline, static] |
Definition at line 3613 of file Type.h.
References clang::Type::getTypeClass().
QualType clang::SubstTemplateTypeParmType::desugar | ( | ) | const [inline] |
const TemplateTypeParmType* clang::SubstTemplateTypeParmType::getReplacedParameter | ( | ) | const [inline] |
Gets the template parameter that was substituted for.
Definition at line 3590 of file Type.h.
Referenced by IsStructurallyEquivalent().
QualType clang::SubstTemplateTypeParmType::getReplacementType | ( | ) | const [inline] |
Gets the type that was substituted for the template parameter.
Definition at line 3596 of file Type.h.
Referenced by IsStructurallyEquivalent().
bool clang::SubstTemplateTypeParmType::isSugared | ( | ) | const [inline] |
void clang::SubstTemplateTypeParmType::Profile | ( | llvm::FoldingSetNodeID & | ID | ) | [inline] |
Definition at line 3603 of file Type.h.
Referenced by clang::ASTContext::getSubstTemplateTypeParmType().
static void clang::SubstTemplateTypeParmType::Profile | ( | llvm::FoldingSetNodeID & | ID, |
const TemplateTypeParmType * | Replaced, | ||
QualType | Replacement | ||
) | [inline, static] |
Definition at line 3606 of file Type.h.
References clang::QualType::getAsOpaquePtr().
friend class ASTContext [friend] |
Reimplemented from clang::Type.