clang API Documentation

Public Types | Public Member Functions | Static Public Member Functions
clang::BuiltinType Class Reference

#include <Type.h>

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

List of all members.

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 *)

Detailed Description

BuiltinType - This class is used for builtin types like 'int'. Builtin types are always canonical and have a literal name field.

Definition at line 1739 of file Type.h.


Member Enumeration Documentation

Definition at line 1741 of file Type.h.


Constructor & Destructor Documentation

clang::BuiltinType::BuiltinType ( Kind  K) [inline]

Definition at line 1748 of file Type.h.


Member Function Documentation

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]

Definition at line 1804 of file Type.h.

QualType clang::BuiltinType::desugar ( ) const [inline]

Definition at line 1760 of file Type.h.

Kind clang::BuiltinType::getKind ( ) const [inline]
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::isFloatingPoint ( ) const [inline]

Definition at line 1774 of file Type.h.

bool clang::BuiltinType::isInteger ( ) const [inline]

Definition at line 1762 of file Type.h.

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.

Definition at line 1799 of file Type.h.

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.

Definition at line 1786 of file Type.h.

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::isSignedInteger ( ) const [inline]

Definition at line 1766 of file Type.h.

bool clang::BuiltinType::isSugared ( ) const [inline]

Definition at line 1759 of file Type.h.

bool clang::BuiltinType::isUnsignedInteger ( ) const [inline]

Definition at line 1770 of file Type.h.


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