[PATCH] D121069: [clang-format] Minimize the damage caused by AlignArrayOfStructures when working on non square arrays

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Mar 6 10:44:33 PST 2022


curdeius added inline comments.


================
Comment at: clang/lib/Format/WhitespaceManager.h:318
          Next = Next->NextColumnElement) {
+      if (RowCount > MaxRowCount) {
+        break;
----------------
You can elide braces. Personally I use RemoveBraces locally.


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

https://reviews.llvm.org/D121069



More information about the cfe-commits mailing list