https://github.com/Peruere1828 updated 
https://github.com/llvm/llvm-project/pull/204273

>From 9be2561e796c40de27535e79f6c48d66cb364521 Mon Sep 17 00:00:00 2001
From: Peruere1828 <[email protected]>
Date: Wed, 17 Jun 2026 02:23:06 +0000
Subject: [PATCH] [clang][docs] Remove extra backslashes in -ffinite-math-only
 help text

  Fix issue #156165: __FINITE_MATH_ONLY__ macro was rendered with
  unnecessary backslash escapes in ClangCommandLineReference.html.

  The double backslashes in the Options.td string were being emitted
  literally, producing e.g. \_\_FINITE\_MATH\_ONLY\_\_ in the generated docs.
---
 clang/include/clang/Options/Options.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/include/clang/Options/Options.td 
b/clang/include/clang/Options/Options.td
index a4b9cb802af4d..11a99aac0cd48 100644
--- a/clang/include/clang/Options/Options.td
+++ b/clang/include/clang/Options/Options.td
@@ -2988,7 +2988,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",

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to