class FPOptionsOverride
Declaration
class FPOptionsOverride { /* full declaration omitted */ };
Description
Represents difference between two FPOptions values. The effect of language constructs changing the set of floating point options is usually a change of some FP properties while leaving others intact. This class describes such changes by keeping information about what FP options are overridden. The integral set of FP options, described by the class FPOptions, may be represented as a default FP option set, defined by language standard and command line options, with the overrides introduced by pragmas. The is implemented as a value of the new FPOptions plus a mask showing which fields are actually set in it.
Declared at: clang/include/clang/Basic/LangOptions.h:776
Member Variables
- private clang::FPOptions Options = FPOptions::getFromOpaqueInt(0)
- private FPOptions::storage_type OverrideMask = 0
- public static const clang::FPOptionsOverride::storage_type OverrideMaskBits = (static_cast<unsigned long>(1) << FPOptions::StorageBitSize) - 1
- Bit mask selecting bits of OverrideMask in serialized representation of FPOptionsOverride.
Method Overview
- public FPOptionsOverride()
- public FPOptionsOverride(const clang::LangOptions & LO)
- public FPOptionsOverride(clang::FPOptions FPO)
- public FPOptionsOverride(clang::FPOptions FPO, FPOptions::storage_type Mask)
- public clang::FPOptions applyOverrides(clang::FPOptions Base)
- public clang::FPOptions applyOverrides(const clang::LangOptions & LO)
- public void dump()
- public clang::FPOptionsOverride::storage_type getAsOpaqueInt() const
- public static clang::FPOptionsOverride getFromOpaqueInt(clang::FPOptionsOverride::storage_type I)
- public bool requiresTrailingStorage() const
- public void setAllowFPContractAcrossStatement()
- public void setAllowFPContractWithinStatement()
- public void setDisallowFPContract()
- public void setFPPreciseEnabled(bool Value)
Methods
¶FPOptionsOverride()
FPOptionsOverride()
Declared at: clang/include/clang/Basic/LangOptions.h:794
¶FPOptionsOverride(const clang::LangOptions& LO)
FPOptionsOverride(const clang::LangOptions& LO)
Declared at: clang/include/clang/Basic/LangOptions.h:795
Parameters
- const clang::LangOptions& LO
¶FPOptionsOverride(clang::FPOptions FPO)
FPOptionsOverride(clang::FPOptions FPO)
Declared at: clang/include/clang/Basic/LangOptions.h:797
Parameters
- clang::FPOptions FPO
¶FPOptionsOverride(clang::FPOptions FPO,
FPOptions::storage_type Mask)
FPOptionsOverride(clang::FPOptions FPO,
FPOptions::storage_type Mask)
Declared at: clang/include/clang/Basic/LangOptions.h:799
Parameters
- clang::FPOptions FPO
- FPOptions::storage_type Mask
¶clang::FPOptions applyOverrides(
clang::FPOptions Base)
clang::FPOptions applyOverrides(
clang::FPOptions Base)
Declared at: clang/include/clang/Basic/LangOptions.h:843
Parameters
- clang::FPOptions Base
¶clang::FPOptions applyOverrides(
const clang::LangOptions& LO)
clang::FPOptions applyOverrides(
const clang::LangOptions& LO)
Declared at: clang/include/clang/Basic/LangOptions.h:850
Parameters
- const clang::LangOptions& LO
¶void dump()
void dump()
Declared at: clang/include/clang/Basic/LangOptions.h:878
¶clang::FPOptionsOverride::storage_type
getAsOpaqueInt() const
clang::FPOptionsOverride::storage_type
getAsOpaqueInt() const
Declared at: clang/include/clang/Basic/LangOptions.h:831
¶static clang::FPOptionsOverride getFromOpaqueInt(
clang::FPOptionsOverride::storage_type I)
static clang::FPOptionsOverride getFromOpaqueInt(
clang::FPOptionsOverride::storage_type I)
Declared at: clang/include/clang/Basic/LangOptions.h:836
Parameters
- clang::FPOptionsOverride::storage_type I
¶bool requiresTrailingStorage() const
bool requiresTrailingStorage() const
Declared at: clang/include/clang/Basic/LangOptions.h:802
¶void setAllowFPContractAcrossStatement()
void setAllowFPContractAcrossStatement()
Declared at: clang/include/clang/Basic/LangOptions.h:808
¶void setAllowFPContractWithinStatement()
void setAllowFPContractWithinStatement()
Declared at: clang/include/clang/Basic/LangOptions.h:804
¶void setDisallowFPContract()
void setDisallowFPContract()
Declared at: clang/include/clang/Basic/LangOptions.h:812
¶void setFPPreciseEnabled(bool Value)
void setFPPreciseEnabled(bool Value)
Declared at: clang/include/clang/Basic/LangOptions.h:816
Parameters
- bool Value