[clang] [clang-format] Added unittest of TableGen formatting w.r.t. block type calculation. (PR #87924)

Hirofumi Nakamura via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 8 05:09:36 PDT 2024


================
@@ -290,6 +290,16 @@ TEST_F(FormatTestTableGen, MultiClass) {
                "}\n");
 }
 
+TEST_F(FormatTestTableGen, MultiClassesWithPasteOperator) {
+  // This is a sensitive example for the handling of the paste operators in
+  // brace type calculation.
+  verifyFormat("multiclass MultiClass1<int i> {\n"
+               "  def : Def#x<i>;\n"
+               "  def : Def#y<i>;\n"
+               "}\n"
+               "multiclass MultiClass2<int i> { def : Def#x<i>; }\n");
----------------
hnakamura5 wrote:

I come to notice that they are not required. I will make a patch for whole this file later.

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


More information about the cfe-commits mailing list