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
StringRef getName (const PrintingPolicy &Policy) const
const char * getNameAsCString (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)

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 1839 of file Type.h.


Member Enumeration Documentation

Definition at line 1841 of file Type.h.


Constructor & Destructor Documentation

Definition at line 1848 of file Type.h.


Member Function Documentation

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

Definition at line 1909 of file Type.h.

References clang::Type::getTypeClass().

Definition at line 1866 of file Type.h.

Kind clang::BuiltinType::getKind ( ) const [inline]
StringRef BuiltinType::getName ( const PrintingPolicy Policy) const
const char* clang::BuiltinType::getNameAsCString ( const PrintingPolicy Policy) const [inline]

Definition at line 1858 of file Type.h.

Definition at line 1880 of file Type.h.

References getKind().

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

Definition at line 1868 of file Type.h.

References getKind().

Referenced by clang::ento::ExprEngine::getInitialState().

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 1905 of file Type.h.

References getKind().

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 1892 of file Type.h.

References getKind().

static bool clang::BuiltinType::isPlaceholderTypeKind ( Kind  K) [inline, static]

Determines whether the given kind corresponds to a placeholder type.

Definition at line 1885 of file Type.h.

Referenced by clang::Expr::hasPlaceholderType(), and clang::Type::isSpecificPlaceholderType().

Definition at line 1872 of file Type.h.

References getKind().

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

Definition at line 1865 of file Type.h.

Definition at line 1876 of file Type.h.

References getKind().


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