[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"
----------------
owenca wrote:

Can you use `verifyFormat` or `verifyNoChange` instead?

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


More information about the cfe-commits mailing list