clang API Documentation
#include <Type.h>


Public Types | |
| enum | Kind |
Public Member Functions | |
| BuiltinType (Kind K) | |
| Kind | getKind () const |
| const char * | getName (const PrintingPolicy &Policy) const |
| bool | isSugared () const |
| QualType | desugar () const |
| bool | isInteger () const |
| bool | isSignedInteger () const |
| bool | isUnsignedInteger () const |
| bool | isFloatingPoint () const |
| bool | isPlaceholderType () const |
| bool | isNonOverloadPlaceholderType () const |
Static Public Member Functions | |
| static bool | isPlaceholderTypeKind (Kind K) |
| Determines whether the given kind corresponds to a placeholder type. | |
| static bool | classof (const Type *T) |
| static bool | classof (const BuiltinType *) |
BuiltinType - This class is used for builtin types like 'int'. Builtin types are always canonical and have a literal name field.
| static bool clang::BuiltinType::classof | ( | const Type * | T | ) | [inline, static] |
Reimplemented from clang::Type.
Definition at line 1803 of file Type.h.
References clang::Type::getTypeClass().
| static bool clang::BuiltinType::classof | ( | const BuiltinType * | ) | [inline, static] |
| Kind clang::BuiltinType::getKind | ( | ) | const [inline] |
Definition at line 1756 of file Type.h.
Referenced by clang::Sema::CheckPlaceholderExpr(), EmitFAbs(), clang::analyze_printf::PrintfSpecifier::fixType(), clang::analyze_scanf::ScanfSpecifier::fixType(), clang::ASTContext::getCorrespondingUnsignedType(), getFloatingRank(), clang::ASTContext::getFloatTypeSemantics(), getName(), clang::BuiltinTypeLoc::getWrittenTypeSpec(), HandleNeonVectorTypeAttr(), clang::Type::isAnyCharacterType(), clang::Sema::IsIntegralPromotion(), ObjCEncodingForPrimitiveKind(), clang::serialization::TypeIdxFromBuiltin(), TypeInfoIsInStandardLibrary(), and clang::ASTNodeImporter::VisitBuiltinType().
| const char * BuiltinType::getName | ( | const PrintingPolicy & | Policy | ) | const |
Definition at line 1483 of file Type.cpp.
References clang::PrintingPolicy::Bool, and getKind().
| bool clang::BuiltinType::isNonOverloadPlaceholderType | ( | ) | const [inline] |
Determines whether this type is a placeholder type other than Overload. Most placeholder types require only syntactic information about their context in order to be resolved (e.g. whether it is a call expression), which means they can (and should) be resolved in an earlier "phase" of analysis. Overload expressions sometimes pick up further information from their context, like whether the context expects a specific function-pointer type, and so frequently need special treatment.
Reimplemented from clang::Type.
| bool clang::BuiltinType::isPlaceholderType | ( | ) | const [inline] |
Determines whether this type is a placeholder type, i.e. a type which cannot appear in arbitrary positions in a fully-formed expression.
Reimplemented from clang::Type.
| static bool clang::BuiltinType::isPlaceholderTypeKind | ( | Kind | K | ) | [inline, static] |
Determines whether the given kind corresponds to a placeholder type.
Definition at line 1779 of file Type.h.
Referenced by clang::Expr::hasPlaceholderType(), and clang::Type::isSpecificPlaceholderType().
| bool clang::BuiltinType::isUnsignedInteger | ( | ) | const [inline] |