[clang] [clang-format] Recognize TableGen paste operator on separate line (PR #133722)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 31 23:08:42 PDT 2025


================
@@ -218,6 +218,12 @@ TEST_F(FormatTestTableGen, PasteOperator) {
                "  string Z = [\"Traring\", \"Paste\", \"Traring\", \"Paste\",\n"
                "              \"Traring\", \"Paste\"]#;\n"
                "}");
+  verifyFormat("def x#x {}", "def x\n"
----------------
owenca wrote:

```suggestion

  verifyFormat("def x#x {}", "def x\n"
```

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


More information about the cfe-commits mailing list