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:
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:
- public Classify
- public ClassifyLValue
- public ClassifyModifiable
- public EvaluateAsBooleanCondition
- public EvaluateAsConstantExpr
- public EvaluateAsFixedPoint
- public EvaluateAsFloat
- public EvaluateAsInitializer
- public EvaluateAsInt
- public EvaluateAsLValue
- public EvaluateAsRValue
- public EvaluateForOverflow
- public EvaluateKnownConstInt
- public EvaluateKnownConstIntCheckOverflow
- public EvaluateWithSubstitution
- public HasSideEffects
- public IgnoreCasts
- public IgnoreCasts
- public IgnoreConversionOperatorSingleStep
- public IgnoreConversionOperatorSingleStep
- public IgnoreImpCasts
- public IgnoreImpCasts
- public IgnoreImplicit
- public IgnoreImplicit
- public IgnoreImplicitAsWritten
- public IgnoreImplicitAsWritten
- public IgnoreParenBaseCasts
- public IgnoreParenBaseCasts
- public IgnoreParenCasts
- public IgnoreParenCasts
- public IgnoreParenImpCasts
- public IgnoreParenImpCasts
- public IgnoreParenLValueCasts
- public IgnoreParenLValueCasts
- public IgnoreParenNoopCasts
- public IgnoreParenNoopCasts
- public IgnoreParens
- public IgnoreParens
- public IgnoreUnlessSpelledInSource
- public IgnoreUnlessSpelledInSource
- public classof
- public containsErrors
- public containsUnexpandedParameterPack
- public findBoundMemberType
- public getAsBuiltinConstantDeclRef
- public getBestDynamicClassType
- public getBestDynamicClassTypeExpr
- public getDependence
- public getExprLoc
- public getFPFeaturesInEffect
- public getIntegerConstantExpr
- public getObjCProperty
- public getObjectKind
- public getReferencedDeclOfCallee
- public getReferencedDeclOfCallee
- public getSourceBitField
- public getSourceBitField
- public getType
- public getValueKind
- public getValueKindForType
- public hasAnyTypeDependentArguments
- public hasNonTrivialCall
- public hasPlaceholderType
- public hasPlaceholderType
- public isBoundMemberFunction
- public isCXX11ConstantExpr
- public isCXX98IntegralConstantExpr
- public isConstantInitializer
- public isDefaultArgument
- public isEvaluatable
- public isGLValue
- public isImplicitCXXThis
- public isInstantiationDependent
- public isIntegerConstantExpr
- public isKnownToHaveBooleanValue
- public isLValue
- public isModifiableLvalue
- public isNullPointerConstant
- public isOBJCGCCandidate
- public isObjCSelfExpr
- public isOrdinaryOrBitFieldObject
- public isPRValue
- public isPotentialConstantExpr
- public isPotentialConstantExprUnevaluated
- public isReadIfDiscardedInCPlusPlus11
- public isSameComparisonOperand
- public isTemporaryObject
- public isTypeDependent
- public isUnusedResultAWarning
- public isValueDependent
- public isXValue
- public refersToBitField
- public refersToGlobalRegisterVar
- public refersToMatrixElement
- public refersToVectorElement
- protected setDependence
- public setObjectKind
- public setType
- public setValueKind
- public skipRValueSubobjectAdjustments
- public skipRValueSubobjectAdjustments
- public tryEvaluateObjectSize
- public tryEvaluateStrLen
Inherited from ValueStmt:
Inherited from Stmt:
- public EnableStatistics
- public IgnoreContainers
- public IgnoreContainers
- public PrintStats
- public ProcessODRHash
- public Profile
- public addStmtClass
- public child_begin
- public child_begin
- public child_end
- public child_end
- public children
- public children
- public determineLikelihoodConflict
- public dump
- public dump
- public dumpColor
- public dumpPretty
- public getBeginLoc
- public getEndLoc
- public getID
- public getLikelihood
- public getLikelihood
- public getLikelihood
- public getLikelihoodAttr
- public getSourceRange
- public getStmtClass
- public getStmtClassName
- public printJson
- public printPretty
- public printPrettyControlled
- public stripLabelLikeStatements
- public stripLabelLikeStatements
- public viewAST
Methods
¶static clang::FloatingLiteral* Create(
const clang::ASTContext& C,
const llvm::APFloat& V,
bool isexact,
clang::QualType Type,
clang::SourceLocation L)
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)
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)
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)
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
clang::Stmt::const_child_range children() const
Declared at: clang/include/clang/AST/Expr.h:1708
¶clang::Stmt::child_range children()
clang::Stmt::child_range children()
Declared at: clang/include/clang/AST/Expr.h:1705
¶static bool classof(const clang::Stmt* T)
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
clang::SourceLocation getBeginLoc() const
Declared at: clang/include/clang/AST/Expr.h:1697
¶clang::SourceLocation getEndLoc() const
clang::SourceLocation getEndLoc() const
Declared at: clang/include/clang/AST/Expr.h:1698
¶clang::SourceLocation getLocation() const
clang::SourceLocation getLocation() const
Declared at: clang/include/clang/AST/Expr.h:1694
¶llvm::APFloatBase::Semantics getRawSemantics()
const
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
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
llvm::APFloat getValue() const
Declared at: clang/include/clang/AST/Expr.h:1653
¶double getValueAsApproximateDouble() const
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
bool isExact() const
Declared at: clang/include/clang/AST/Expr.h:1686
¶void setExact(bool E)
void setExact(bool E)
Declared at: clang/include/clang/AST/Expr.h:1687
Parameters
- bool E
¶void setLocation(clang::SourceLocation L)
void setLocation(clang::SourceLocation L)
Declared at: clang/include/clang/AST/Expr.h:1695
Parameters
¶void setRawSemantics(
llvm::APFloatBase::Semantics Sem)
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)
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)
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