[PATCH] D101868: [clang-format] Adds a formatter for aligning arrays of structs

Marek Kurdej via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 9 11:25:23 PDT 2021


curdeius added inline comments.


================
Comment at: clang/docs/ClangFormatStyleOptions.rst:216-221
+    struct test demo[] =
+    {
+        {56,    23, "hello"},
+        {-1, 93463, "world"},
+        { 7,     5,    "!!"}
+    };
----------------
feg208 wrote:
> curdeius wrote:
> > Don't forget to re-generate .rst.
> I am sorry. I am not entirely sure what to check here? Should I regenerate the docs for the site and just ensure that they look ok?
It seems that you modified Format.h but didn't re-run `clang/docs/tools/dump_format_style.py` (example for `Left` is actually right-aligned).


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D101868



More information about the cfe-commits mailing list