[clang] [clang] Set FPOptions at the beginning of CompoundStmt (PR #111654)

Zahira Ammarguellat via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 7 11:36:36 PST 2024


================
@@ -1684,6 +1684,15 @@ class CompoundStmt final
     return hasStoredFPFeatures() ? getStoredFPFeatures() : FPOptionsOverride();
   }
 
+  /// Get FPOptions inside this statement. They may differ from the outer
+  /// options due to pragmas.
+  /// \param CurFPOptions FPOptions outside this statement.
+  FPOptions getInsideFPOptions(FPOptions CurFPOptions) const {
----------------
zahiraam wrote:

How about giving another name to this function? Something like `getStoredFPFeaturesInStmt` or `getStoredFPFeaturesInCompoundStmt`.

https://github.com/llvm/llvm-project/pull/111654


More information about the cfe-commits mailing list