[clang-tools-extra] [clang-tidy] Avoid diagnosing std::array initializations for modernize-use-designated-initializers (PR #134774)
David Rivera via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 8 20:11:54 PDT 2025
RiverDave wrote:
> We should fix `IgnoreSingleElementAggregates` instead.
Just to be clear, I suppose we're looking to fix `std::array` + `IgnoreSingleElementAggregates = false` as It's the only problematic combination I could analyze. The fixit this check provides on aggregate types with a single field of array type, seem to be correct to me: https://godbolt.org/z/Tahfa7onP
https://github.com/llvm/llvm-project/pull/134774
More information about the cfe-commits
mailing list