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

Hoe Hao Cheng via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 13 01:57:20 PDT 2023


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 copied other tests and modified them to suit the Cpp11BracedListStyle == false case, and one of those tests used EXPECT_EQ.

Should I change it to verifyFormat?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145813/new/

https://reviews.llvm.org/D145813



More information about the cfe-commits mailing list