clang API Documentation

Public Member Functions | Static Public Member Functions | Friends
clang::SubstTemplateTypeParmType Class Reference

Represents the result of substituting a type for a template type parameter. More...

#include <Type.h>

Inheritance diagram for clang::SubstTemplateTypeParmType:
Inheritance graph
[legend]
Collaboration diagram for clang::SubstTemplateTypeParmType:
Collaboration graph
[legend]

List of all members.

Public Member Functions

const TemplateTypeParmTypegetReplacedParameter () 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

Detailed Description

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.

Definition at line 3575 of file Type.h.


Member Function Documentation

static bool clang::SubstTemplateTypeParmType::classof ( const Type T) [inline, static]

Definition at line 3613 of file Type.h.

References clang::Type::getTypeClass().

Definition at line 3601 of file Type.h.

Gets the template parameter that was substituted for.

Definition at line 3590 of file Type.h.

Referenced by IsStructurallyEquivalent().

Gets the type that was substituted for the template parameter.

Definition at line 3596 of file Type.h.

Referenced by IsStructurallyEquivalent().

Definition at line 3600 of file Type.h.

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().


Friends And Related Function Documentation

friend class ASTContext [friend]

Reimplemented from clang::Type.

Definition at line 3586 of file Type.h.


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