clang API Documentation

Public Member Functions | Static Public Member Functions
clang::FloatingLiteral Class Reference

#include <Expr.h>

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

List of all members.

Public Member Functions

llvm::APFloat getValue () const
void setValue (const ASTContext &C, const llvm::APFloat &Val)
APFloatSemantics getRawSemantics () const
void setRawSemantics (APFloatSemantics Sem)
const llvm::fltSemantics & getSemantics () const
 Return the APFloat semantics this literal uses.
void setSemantics (const llvm::fltSemantics &Sem)
 Set the APFloat semantics this literal uses.
bool isExact () const
void setExact (bool E)
double getValueAsApproximateDouble () const
SourceLocation getLocation () const
void setLocation (SourceLocation L)
SourceLocation getLocStart () const LLVM_READONLY
SourceLocation getLocEnd () const LLVM_READONLY
child_range children ()

Static Public Member Functions

static FloatingLiteralCreate (const ASTContext &C, const llvm::APFloat &V, bool isexact, QualType Type, SourceLocation L)
static FloatingLiteralCreate (const ASTContext &C, EmptyShell Empty)
static bool classof (const Stmt *T)

Detailed Description

Definition at line 1354 of file Expr.h.


Member Function Documentation

Reimplemented from clang::Stmt.

Definition at line 1413 of file Expr.h.

static bool clang::FloatingLiteral::classof ( const Stmt T) [inline, static]

Reimplemented from clang::Expr.

Definition at line 1408 of file Expr.h.

References clang::Stmt::getStmtClass().

FloatingLiteral * FloatingLiteral::Create ( const ASTContext C,
const llvm::APFloat &  V,
bool  isexact,
QualType  Type,
SourceLocation  L 
) [static]

Definition at line 751 of file Expr.cpp.

References AttributeLangSupport::C.

Referenced by BuildFloatingLiteral().

FloatingLiteral * FloatingLiteral::Create ( const ASTContext C,
EmptyShell  Empty 
) [static]

Definition at line 757 of file Expr.cpp.

References AttributeLangSupport::C.

Definition at line 1402 of file Expr.h.

Reimplemented from clang::Stmt.

Definition at line 1406 of file Expr.h.

Reimplemented from clang::Stmt.

Definition at line 1405 of file Expr.h.

Get a raw enumeration value representing the floating-point semantics of this literal (32-bit IEEE, x87, ...), suitable for serialisation.

Definition at line 1378 of file Expr.h.

References clang::Stmt::FloatingLiteralBits.

const llvm::fltSemantics & FloatingLiteral::getSemantics ( ) const
llvm::APFloat clang::FloatingLiteral::getValue ( ) const [inline]

Definition at line 1368 of file Expr.h.

References getSemantics().

Referenced by getValueAsApproximateDouble(), isIdenticalStmt(), and PrintFloatingLiteral().

getValueAsApproximateDouble - This returns the value as an inaccurate double. Note that this may cause loss of precision, but is useful for debugging dumps, etc.

Definition at line 799 of file Expr.cpp.

References getValue().

Definition at line 1394 of file Expr.h.

References clang::Stmt::FloatingLiteralBits.

void clang::FloatingLiteral::setExact ( bool  E) [inline]

Definition at line 1395 of file Expr.h.

References clang::Stmt::FloatingLiteralBits.

Definition at line 1403 of file Expr.h.

Set the raw enumeration value representing the floating-point semantics of this literal (32-bit IEEE, x87, ...), suitable for serialisation.

Definition at line 1384 of file Expr.h.

References clang::Stmt::FloatingLiteralBits.

void FloatingLiteral::setSemantics ( const llvm::fltSemantics &  Sem)
void clang::FloatingLiteral::setValue ( const ASTContext C,
const llvm::APFloat &  Val 
) [inline]

Reimplemented from clang::APFloatStorage.

Definition at line 1371 of file Expr.h.

References getSemantics().


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