clang API Documentation
#include <Expr.h>


Public Member Functions | |
| llvm::APFloat | getValue () const |
| void | setValue (ASTContext &C, const llvm::APFloat &Val) |
| bool | isExact () const |
| void | setExact (bool E) |
| double | getValueAsApproximateDouble () const |
| SourceLocation | getLocation () const |
| void | setLocation (SourceLocation L) |
| SourceRange | getSourceRange () const LLVM_READONLY |
| child_range | children () |
Static Public Member Functions | |
| static FloatingLiteral * | Create (ASTContext &C, const llvm::APFloat &V, bool isexact, QualType Type, SourceLocation L) |
| static FloatingLiteral * | Create (ASTContext &C, EmptyShell Empty) |
| static bool | classof (const Stmt *T) |
| static bool | classof (const FloatingLiteral *) |
| 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 1274 of file Expr.h.
References clang::Stmt::getStmtClass().
| static bool clang::FloatingLiteral::classof | ( | const FloatingLiteral * | ) | [inline, static] |
| FloatingLiteral * FloatingLiteral::Create | ( | ASTContext & | C, |
| const llvm::APFloat & | V, | ||
| bool | isexact, | ||
| QualType | Type, | ||
| SourceLocation | L | ||
| ) | [static] |
Definition at line 558 of file Expr.cpp.
Referenced by BuildFloatingLiteral().
| FloatingLiteral * FloatingLiteral::Create | ( | ASTContext & | C, |
| EmptyShell | Empty | ||
| ) | [static] |
| SourceLocation clang::FloatingLiteral::getLocation | ( | ) | const [inline] |
| SourceRange clang::FloatingLiteral::getSourceRange | ( | ) | const [inline] |
SourceLocation tokens are not useful in isolation - they are low level value objects created/interpreted by SourceManager. We assume AST clients will have a pointer to the respective SourceManager.
Reimplemented from clang::Stmt.
| llvm::APFloat clang::FloatingLiteral::getValue | ( | ) | const [inline] |
Definition at line 1254 of file Expr.h.
References clang::Stmt::FloatingLiteralBits.
Referenced by getValueAsApproximateDouble().
| 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 571 of file Expr.cpp.
References getValue().
| bool clang::FloatingLiteral::isExact | ( | ) | const [inline] |
Definition at line 1261 of file Expr.h.
References clang::Stmt::FloatingLiteralBits.
| void clang::FloatingLiteral::setExact | ( | bool | E | ) | [inline] |
Definition at line 1262 of file Expr.h.
References clang::Stmt::FloatingLiteralBits.
| void clang::FloatingLiteral::setLocation | ( | SourceLocation | L | ) | [inline] |
| void clang::FloatingLiteral::setValue | ( | ASTContext & | C, |
| const llvm::APFloat & | Val | ||
| ) | [inline] |
Reimplemented from clang::APFloatStorage.