clang API Documentation
Represents a type which was implicitly adjusted by the semantic engine for arbitrary reasons. For example, array and function types can decay, and function types can have their calling conventions adjusted. More...
#include <Type.h>
Public Member Functions | |
QualType | getOriginalType () const |
QualType | getAdjustedType () const |
bool | isSugared () const |
QualType | desugar () const |
void | Profile (llvm::FoldingSetNodeID &ID) |
Static Public Member Functions | |
static void | Profile (llvm::FoldingSetNodeID &ID, QualType Orig, QualType New) |
static bool | classof (const Type *T) |
Protected Member Functions | |
AdjustedType (TypeClass TC, QualType OriginalTy, QualType AdjustedTy, QualType CanonicalPtr) | |
Friends | |
class | ASTContext |
Represents a type which was implicitly adjusted by the semantic engine for arbitrary reasons. For example, array and function types can decay, and function types can have their calling conventions adjusted.
clang::AdjustedType::AdjustedType | ( | TypeClass | TC, |
QualType | OriginalTy, | ||
QualType | AdjustedTy, | ||
QualType | CanonicalPtr | ||
) | [inline, protected] |
static bool clang::AdjustedType::classof | ( | const Type * | T | ) | [inline, static] |
Reimplemented in clang::DecayedType.
Definition at line 2037 of file Type.h.
References clang::Type::getTypeClass().
QualType clang::AdjustedType::desugar | ( | ) | const [inline] |
QualType clang::AdjustedType::getAdjustedType | ( | ) | const [inline] |
QualType clang::AdjustedType::getOriginalType | ( | ) | const [inline] |
bool clang::AdjustedType::isSugared | ( | ) | const [inline] |
void clang::AdjustedType::Profile | ( | llvm::FoldingSetNodeID & | ID | ) | [inline] |
Definition at line 2029 of file Type.h.
Referenced by clang::ASTContext::getAdjustedType(), and clang::ASTContext::getDecayedType().
static void clang::AdjustedType::Profile | ( | llvm::FoldingSetNodeID & | ID, |
QualType | Orig, | ||
QualType | New | ||
) | [inline, static] |
Definition at line 2032 of file Type.h.
References clang::QualType::getAsOpaquePtr().
friend class ASTContext [friend] |
Reimplemented from clang::Type.
Reimplemented in clang::DecayedType.