[PATCH] D158795: Fix AlignArrayOfStructures + Cpp11BracedListStyle=false

Owen Pan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Aug 26 22:39:01 PDT 2023


owenpan added inline comments.


================
Comment at: clang/unittests/Format/FormatTest.cpp:20888
+               "  {  7,     5,    \"!!\" }\n"
+               "};\n",
+               Style);
----------------
galenelias wrote:
> owenpan wrote:
> > 
> This is consistent with basically every single adjacent test in this function.  While I agree that this is unnecessary, in general I error on the side of consistency with the surrounding tests.  I'll defer to the maintainers, just wanted to make sure this is actually the preferred change given the numerous adjacent tests with this form.
If you rebase your patch, you'll see that the trailing newlines in the surrounding tests have been removed. (Even if they had not been removed, we still wouldn't want new tests to have superfluous trailing newlines.)


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

https://reviews.llvm.org/D158795



More information about the cfe-commits mailing list