[clang] [clang-format] Allow array alignment on non-rectangular arrays (PR #143781)
Björn Schäpers via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 12 01:51:20 PDT 2025
================
@@ -27901,39 +27901,39 @@ TEST_F(FormatTest, AlignArrayOfStructuresLeftAlignmentNonSquare) {
// crashes, these tests assert that the array is not changed but will
// also act as regression tests for when it is properly fixed
verifyFormat("struct test demo[] = {\n"
- " {1, 2},\n"
+ " {1, 2 },\n"
----------------
HazardyKnusperkeks wrote:
But I'm not so sure about adding the spaces here.
https://github.com/llvm/llvm-project/pull/143781
More information about the cfe-commits
mailing list