[clang] [clang] Enable FPContract with optnone (PR #91061)

via cfe-commits cfe-commits at lists.llvm.org
Sat May 4 06:32:08 PDT 2024


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 1aeb64c8ec7b96b2301929d8a325a6e1d9ddaa2f 32c0ec8a03b0c669dc595894730dd6f8a7933dea -- clang/include/clang/Basic/LangOptions.h clang/test/AST/ast-dump-fpfeatures.cpp clang/test/AST/ast-dump-late-parsing.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/include/clang/Basic/LangOptions.h b/clang/include/clang/Basic/LangOptions.h
index dbf4595790..75e88afbd9 100644
--- a/clang/include/clang/Basic/LangOptions.h
+++ b/clang/include/clang/Basic/LangOptions.h
@@ -968,9 +968,7 @@ public:
       setAllowFPContractAcrossStatement();
   }
 
-  void setDisallowOptimizations() {
-    setFPPreciseEnabled(true);
-  }
+  void setDisallowOptimizations() { setFPPreciseEnabled(true); }
 
   storage_type getAsOpaqueInt() const {
     return (static_cast<storage_type>(Options.getAsOpaqueInt())

``````````

</details>


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


More information about the cfe-commits mailing list