[clang] [clang-format] Split line comments separated by backslashes (PR #147648)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 10 18:13:41 PDT 2025


================
@@ -513,9 +513,9 @@ struct FormatStyle {
     ENAS_LeftWithLastLine,
     /// Align escaped newlines in the right-most column.
     /// \code
-    ///   #define A                                                                      \
-    ///     int aaaa;                                                                    \
-    ///     int b;                                                                       \
+    ///   #define A                                                            \
----------------
owenca wrote:

Yes. They were way over the 80-character column limit, and this patch would "fix" them by replacing the padding spaces before each backslash with a single one.

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


More information about the cfe-commits mailing list