[clang] [clang-format] Handle doxygen commands starting with \ (PR #80381)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sun Feb 4 10:34:06 PST 2024


================
@@ -1909,6 +1909,14 @@ TEST_F(FormatTestComments, ReflowsComments) {
                    "// @param arg",
                    getLLVMStyleWithColumns(20)));
 
+  // Don't reflow lines starting with '\'.
+  EXPECT_EQ("// long long long\n"
+            "// long\n"
+            "// \\param arg",
+            format("// long long long long\n"
+                   "// \\param arg",
+                   getLLVMStyleWithColumns(20)));
----------------
owenca wrote:

Redundant?

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


More information about the cfe-commits mailing list