Changeset View
Changeset View
Standalone View
Standalone View
clang/include/clang/AST/Stmt.h
Show First 20 Lines • Show All 1,452 Lines • ▼ Show 20 Lines | public: | ||||
bool hasStoredFPFeatures() const { return CompoundStmtBits.HasFPFeatures; } | bool hasStoredFPFeatures() const { return CompoundStmtBits.HasFPFeatures; } | ||||
/// Get FPOptionsOverride from trailing storage. | /// Get FPOptionsOverride from trailing storage. | ||||
FPOptionsOverride getStoredFPFeatures() const { | FPOptionsOverride getStoredFPFeatures() const { | ||||
assert(hasStoredFPFeatures()); | assert(hasStoredFPFeatures()); | ||||
return *getTrailingObjects<FPOptionsOverride>(); | return *getTrailingObjects<FPOptionsOverride>(); | ||||
} | } | ||||
FPOptionsOverride getFPFeatures() const { | |||||
if (hasStoredFPFeatures()) | |||||
return getStoredFPFeatures(); | |||||
return FPOptionsOverride(); | |||||
} | |||||
/// Get FPOptions inside this statement. They may differ from outer options | /// Get FPOptions inside this statement. They may differ from outer options | ||||
/// due to pragmas. | /// due to pragmas. | ||||
/// \param CurFPOptions FPOptions outside this statement. | /// \param CurFPOptions FPOptions outside this statement. | ||||
FPOptions getNewFPOptions(FPOptions CurFPOptions) const { | FPOptions getNewFPOptions(FPOptions CurFPOptions) const { | ||||
return hasStoredFPFeatures() | return hasStoredFPFeatures() | ||||
? getStoredFPFeatures().applyOverrides(CurFPOptions) | ? getStoredFPFeatures().applyOverrides(CurFPOptions) | ||||
: CurFPOptions; | : CurFPOptions; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 2,288 Lines • Show Last 20 Lines |