[PATCH] D145813: [clang-format] Respect Cpp11BraceListStyle when aligning array of structures

2023-03-13 Thread Hoe Hao Cheng via Phabricator via cfe-commits
hch12907 added inline comments. Comment at: clang/unittests/Format/FormatTest.cpp:20273 + Style.ColumnLimit = 20; + EXPECT_EQ( + "demo = std::array<\n" MyDeveloperDay wrote: > any reason you didn't use verifyFormat here? No particular reason - I simply cop

[PATCH] D145813: [clang-format] Respect Cpp11BraceListStyle when aligning array of structures

2023-03-10 Thread Hoe Hao Cheng via Phabricator via cfe-commits
hch12907 updated this revision to Diff 504238. hch12907 added a comment. Added unit tests Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D145813/new/ https://reviews.llvm.org/D145813 Files: clang/lib/Format/WhitespaceManager.cpp clang/unittests/

[PATCH] D145813: [clang-format] Respect Cpp11BraceListStyle when aligning array of structures

2023-03-10 Thread Hoe Hao Cheng via Phabricator via cfe-commits
hch12907 created this revision. hch12907 added a reviewer: owenpan. Herald added a project: All. hch12907 requested review of this revision. Herald added a project: clang. Herald added a subscriber: cfe-commits. When Cpp11BraceListStyle is set to false and AlignArrayOfStructures is set, the first