[clang] [clang-format] Allow array alignment on non-rectangular arrays (PR #143781)

Owen Pan via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 13 21:48:28 PDT 2025


owenca wrote:

IIRC, we had so many issues with ``AlignArrayOfStructures`` that at one point we were discussing whether to disable it. Even after @mydeveloperday had reduced its functionality to only handling rectangular arrays, we still had to fix quite a few bugs including crashes before it was deemed (IMO barely) usable. I don't think we should make it handle non-rectangular arrays until the numerous existing bugs are fixed. Maybe what we really need is a redesign.

https://github.com/llvm/llvm-project/pull/143781


More information about the cfe-commits mailing list