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

Björn Schäpers via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 24 02:06:41 PDT 2021


HazardyKnusperkeks added a comment.

In D101868#2775550 <https://reviews.llvm.org/D101868#2775550>, @feg208 wrote:

> This reworks substantially this commit. I recognize there are lacking/broken
> tests but I just would like to ensure that the general direction doesn't
> seem likely to end in tears

I'm not deep enough in clang-format and currently have not enough time to check that in depth. But why are you right aligning?

I would love to have a right aligning for numbers (or even better aligning around the decimal dot) in all my code, but strings I wouldn't want to right align.


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