[clang] [clang-format] Added unittest of TableGen formatting w.r.t. block type calculation. (PR #87924)
Owen Pan via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 7 14:41:20 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");
----------------
owenca wrote:
Do you need the trailing newlines? There are dozens of them in this file. Please remove them if they are not needed.
https://github.com/llvm/llvm-project/pull/87924
More information about the cfe-commits
mailing list