[clang] [clang-format] Added AlignConsecutiveTableGenBreakingDAGArgColons option. (PR #86150)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 25 02:11:09 PDT 2025
FullZing wrote:
Hello @HazardyKnusperkeks ,
thank you for making this great support.
But I have a strange case , would you mind helping me to have a look at it?
```
// format1
def X_Type
: X_I32EnumAttr<
"Type", [I32EnumAttrCase<"A", 0>,
I32EnumAttrCase<"B", 1>,
I32EnumAttrCase<"C", 2>
]>;
// format2
def X_Type
: X_I32EnumAttr<"Type", [I32EnumAttrCase<"A", 0>,
I32EnumAttrCase<"B", 1>,
I32EnumAttrCase<"C", 2>
]>;
// format2
def X_Type
: X_I32EnumAttr<
"Type",
[I32EnumAttrCase<"A", 0>, I32EnumAttrCase<"B", 1>,
I32EnumAttrCase<"C", 2>
]>;
// format3
def X_Type
: X_I32EnumAttr<
"Type",
[I32EnumAttrCase<"A", 0>,
I32EnumAttrCase<"B", 1>,
I32EnumAttrCase<"C", 2>
]>;
```
as you can see, clang-format with tablegen produces different result for my case.
I'd like all of them has same result (for example, format3).
is it possible to achieve it?
https://github.com/llvm/llvm-project/pull/86150
More information about the cfe-commits
mailing list