[clang] [clang][docs] Remove extra backslashes in -ffinite-math-only help text (PR #214670)

via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 7 01:58:15 PDT 2026


llvmorg-github-actions[bot] wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: richardmilles

<details>
<summary>Changes</summary>

`__FINITE_MATH_ONLY__` was rendered with literal backslashes in ClangCommandLineReference.

Fixes #<!-- -->156165

Assisted-by: Cursor

Made with [Cursor](https://cursor.com)

---
Full diff: https://github.com/llvm/llvm-project/pull/214670.diff


1 Files Affected:

- (modified) clang/include/clang/Options/Options.td (+1-1) 


``````````diff
diff --git a/clang/include/clang/Options/Options.td b/clang/include/clang/Options/Options.td
index cf66ee3e52f2d..24f7f367b3e3e 100644
--- a/clang/include/clang/Options/Options.td
+++ b/clang/include/clang/Options/Options.td
@@ -3068,7 +3068,7 @@ defm finite_math_only : BoolOptionWithoutMarshalling<"f", "finite-math-only",
   PosFlag<SetTrue, [], [ClangOption, CC1Option],
           "Allow floating-point optimizations that "
           "assume arguments and results are not NaNs or +-inf. This defines "
-          "the \\_\\_FINITE\\_MATH\\_ONLY\\_\\_ preprocessor macro.",
+          "the __FINITE_MATH_ONLY__ preprocessor macro.",
           [ffast_math.KeyPath]>,
   NegFlag<SetFalse>>;
 defm signed_zeros : BoolFOption<"signed-zeros",

``````````

</details>


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


More information about the cfe-commits mailing list