[clang] [clang][docs] Remove extra backslashes in -ffinite-math-only help text (PR #204273)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 3 06:21:35 PDT 2026
https://github.com/Peruere1828 updated https://github.com/llvm/llvm-project/pull/204273
>From 9be2561e796c40de27535e79f6c48d66cb364521 Mon Sep 17 00:00:00 2001
From: Peruere1828 <fmyh1828 at gmail.com>
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",
More information about the cfe-commits
mailing list