clang API Documentation
#include <Type.h>
Public Member Functions | |
EnumDecl * | getDecl () const |
bool | isSugared () const |
QualType | desugar () const |
Static Public Member Functions | |
static bool | classof (const Type *T) |
Friends | |
class | ASTContext |
EnumType - This is a helper class that allows the use of isa/cast/dyncast to detect TagType objects of enums.
static bool clang::EnumType::classof | ( | const Type * | T | ) | [inline, static] |
Reimplemented from clang::TagType.
Definition at line 3391 of file Type.h.
References clang::Type::getTypeClass().
QualType clang::EnumType::desugar | ( | ) | const [inline] |
EnumDecl* clang::EnumType::getDecl | ( | ) | const [inline] |
Reimplemented from clang::TagType.
Definition at line 3384 of file Type.h.
References clang::TagType::getDecl().
Referenced by clang::Sema::ActOnFinishSwitchStmt(), appendEnumType(), checkEnumComparison(), clang::QualType::getBaseTypeIdentifier(), getIntegerTypeForEnum(), getRangeForType(), mergeEnumWithInteger(), ObjCEncodingForEnumType(), clang::Sema::PerformImplicitConversion(), clang::Sema::RequireCompleteDeclContext(), and clang::ASTNodeImporter::VisitEnumType().
bool clang::EnumType::isSugared | ( | ) | const [inline] |
friend class ASTContext [friend] |
Reimplemented from clang::Type.