[clang] [clang-format] Fix TableGen nested DAGArg format (PR #155837)
Hirofumi Nakamura via cfe-commits
cfe-commits at lists.llvm.org
Sat Aug 30 22:46:58 PDT 2025
================
@@ -185,11 +185,18 @@ TEST_F(FormatTestTableGen, SimpleValue6) {
" i32:$dst6, // dst6\n"
" i32:$dst7 // dst7\n"
" );\n"
- " let DAGArgBang = (!cast<SomeType>(\"Some\") i32:$src1,\n"
- " i32:$src2);\n"
+ " let DAGArgBang =\n"
+ " (!cast<SomeType>(\"Some\") i32:$src1, i32:$src2);\n"
----------------
hnakamura5 wrote:
I found the reason, the Context's BindingStrength.
The difference of the costs of both format seems very small. The BindingStrength affected to that.
The change is not on this topic (even is better), I fixed it.
https://github.com/llvm/llvm-project/pull/155837
More information about the cfe-commits
mailing list