clang API Documentation
#include <Expr.h>
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 FloatingLiteral * | Create (const ASTContext &C, const llvm::APFloat &V, bool isexact, QualType Type, SourceLocation L) |
static FloatingLiteral * | Create (const ASTContext &C, EmptyShell Empty) |
static bool | classof (const Stmt *T) |
child_range clang::FloatingLiteral::children | ( | ) | [inline] |
Reimplemented from clang::Stmt.
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.
SourceLocation clang::FloatingLiteral::getLocation | ( | ) | const [inline] |
SourceLocation clang::FloatingLiteral::getLocEnd | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
SourceLocation clang::FloatingLiteral::getLocStart | ( | ) | const [inline] |
Reimplemented from clang::Stmt.
APFloatSemantics clang::FloatingLiteral::getRawSemantics | ( | ) | const [inline] |
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 |
Return the APFloat semantics this literal uses.
Definition at line 761 of file Expr.cpp.
References clang::Stmt::FloatingLiteralBits, clang::Stmt::IEEEdouble, clang::Stmt::IEEEhalf, clang::Stmt::IEEEquad, clang::Stmt::IEEEsingle, clang::Stmt::PPCDoubleDouble, and clang::Stmt::x87DoubleExtended.
Referenced by getValue(), and setValue().
llvm::APFloat clang::FloatingLiteral::getValue | ( | ) | const [inline] |
Definition at line 1368 of file Expr.h.
References getSemantics().
Referenced by getValueAsApproximateDouble(), isIdenticalStmt(), and PrintFloatingLiteral().
double FloatingLiteral::getValueAsApproximateDouble | ( | ) | const |
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().
bool clang::FloatingLiteral::isExact | ( | ) | const [inline] |
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.
void clang::FloatingLiteral::setLocation | ( | SourceLocation | L | ) | [inline] |
void clang::FloatingLiteral::setRawSemantics | ( | APFloatSemantics | Sem | ) | [inline] |
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 | ) |
Set the APFloat semantics this literal uses.
Definition at line 779 of file Expr.cpp.
References clang::Stmt::FloatingLiteralBits, clang::Stmt::IEEEdouble, clang::Stmt::IEEEhalf, clang::Stmt::IEEEquad, clang::Stmt::IEEEsingle, clang::Stmt::PPCDoubleDouble, and clang::Stmt::x87DoubleExtended.
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().