class FloatingLiteral

Declaration

class FloatingLiteral : public Expr, private APFloatStorage { /* full declaration omitted */ };

Description

This represents one expression. Note that Expr's are subclasses of Stmt. This allows an expression to be transparently used any place a Stmt is required.

Declared at: clang/include/clang/AST/Expr.h:1639

Inherits from: Expr, APFloatStorage

Member Variables

private clang::SourceLocation Loc

Inherited from Stmt:

protected

Method Overview

  • public static clang::FloatingLiteral * Create(const clang::ASTContext & C, const llvm::APFloat & V, bool isexact, clang::QualType Type, clang::SourceLocation L)
  • public static clang::FloatingLiteral * Create(const clang::ASTContext & C, clang::Stmt::EmptyShell Empty)
  • private FloatingLiteral(const clang::ASTContext & C, clang::Stmt::EmptyShell Empty)
  • private FloatingLiteral(const clang::ASTContext & C, const llvm::APFloat & V, bool isexact, clang::QualType Type, clang::SourceLocation L)
  • public clang::Stmt::const_child_range children() const
  • public clang::Stmt::child_range children()
  • public static bool classof(const clang::Stmt * T)
  • public clang::SourceLocation getBeginLoc() const
  • public clang::SourceLocation getEndLoc() const
  • public clang::SourceLocation getLocation() const
  • public llvm::APFloatBase::Semantics getRawSemantics() const
  • public const llvm::fltSemantics & getSemantics() const
  • public llvm::APFloat getValue() const
  • public double getValueAsApproximateDouble() const
  • public bool isExact() const
  • public void setExact(bool E)
  • public void setLocation(clang::SourceLocation L)
  • public void setRawSemantics(llvm::APFloatBase::Semantics Sem)
  • public void setSemantics(const llvm::fltSemantics & Sem)
  • public void setValue(const clang::ASTContext & C, const llvm::APFloat & Val)

Inherited from Expr:

Inherited from ValueStmt:

Inherited from Stmt:

Methods

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

Declared at: clang/include/clang/AST/Expr.h:1649

Parameters

const clang::ASTContext& C
const llvm::APFloat& V
bool isexact
clang::QualType Type
clang::SourceLocation L

static clang::FloatingLiteral* Create(
    const clang::ASTContext& C,
    clang::Stmt::EmptyShell Empty)

Declared at: clang/include/clang/AST/Expr.h:1651

Parameters

const clang::ASTContext& C
clang::Stmt::EmptyShell Empty

FloatingLiteral(const clang::ASTContext& C,
                clang::Stmt::EmptyShell Empty)

Description

Construct an empty floating-point literal.

Declared at: clang/include/clang/AST/Expr.h:1646

Parameters

const clang::ASTContext& C
clang::Stmt::EmptyShell Empty

FloatingLiteral(const clang::ASTContext& C,
                const llvm::APFloat& V,
                bool isexact,
                clang::QualType Type,
                clang::SourceLocation L)

Declared at: clang/include/clang/AST/Expr.h:1642

Parameters

const clang::ASTContext& C
const llvm::APFloat& V
bool isexact
clang::QualType Type
clang::SourceLocation L

clang::Stmt::const_child_range children() const

Declared at: clang/include/clang/AST/Expr.h:1708

clang::Stmt::child_range children()

Declared at: clang/include/clang/AST/Expr.h:1705

static bool classof(const clang::Stmt* T)

Declared at: clang/include/clang/AST/Expr.h:1700

Parameters

const clang::Stmt* T

clang::SourceLocation getBeginLoc() const

Declared at: clang/include/clang/AST/Expr.h:1697

clang::SourceLocation getEndLoc() const

Declared at: clang/include/clang/AST/Expr.h:1698

clang::SourceLocation getLocation() const

Declared at: clang/include/clang/AST/Expr.h:1694

llvm::APFloatBase::Semantics getRawSemantics()
    const

Description

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

Declared at: clang/include/clang/AST/Expr.h:1663

const llvm::fltSemantics& getSemantics() const

Description

Return the APFloat semantics this literal uses.

Declared at: clang/include/clang/AST/Expr.h:1675

llvm::APFloat getValue() const

Declared at: clang/include/clang/AST/Expr.h:1653

double getValueAsApproximateDouble() const

Description

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

Declared at: clang/include/clang/AST/Expr.h:1692

bool isExact() const

Declared at: clang/include/clang/AST/Expr.h:1686

void setExact(bool E)

Declared at: clang/include/clang/AST/Expr.h:1687

Parameters

bool E

void setLocation(clang::SourceLocation L)

Declared at: clang/include/clang/AST/Expr.h:1695

Parameters

clang::SourceLocation L

void setRawSemantics(
    llvm::APFloatBase::Semantics Sem)

Description

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

Declared at: clang/include/clang/AST/Expr.h:1670

Parameters

llvm::APFloatBase::Semantics Sem

void setSemantics(const llvm::fltSemantics& Sem)

Description

Set the APFloat semantics this literal uses.

Declared at: clang/include/clang/AST/Expr.h:1682

Parameters

const llvm::fltSemantics& Sem

void setValue(const clang::ASTContext& C,
              const llvm::APFloat& Val)

Declared at: clang/include/clang/AST/Expr.h:1656

Parameters

const clang::ASTContext& C
const llvm::APFloat& Val