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 (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 FloatingLiteralCreate (ASTContext &C, const llvm::APFloat &V, bool isexact, QualType Type, SourceLocation L)
static FloatingLiteralCreate (ASTContext &C, EmptyShell Empty)
static bool classof (const Stmt *T)
static bool classof (const FloatingLiteral *)

Detailed Description

Definition at line 1228 of file Expr.h.


Member Function Documentation

child_range clang::FloatingLiteral::children ( ) [inline]

Reimplemented from clang::Stmt.

Definition at line 1280 of file Expr.h.

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]

Definition at line 1277 of file Expr.h.

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]

Definition at line 564 of file Expr.cpp.

SourceLocation clang::FloatingLiteral::getLocation ( ) const [inline]

Definition at line 1269 of file Expr.h.

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.

Definition at line 1272 of file Expr.h.

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]

Definition at line 1270 of file Expr.h.

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

Reimplemented from clang::APFloatStorage.

Definition at line 1257 of file Expr.h.


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