[PATCH] D157879: [clang] Report missing designated initializers in C++

Aaron Ballman via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 21 10:10:11 PDT 2023


aaron.ballman added a comment.

In D157879#4604046 <https://reviews.llvm.org/D157879#4604046>, @aeubanks wrote:

> is there any way to suppress this for a specific field? (I believe) I'm seeing user code where a field is intentionally not being initialized

Hmmm, so they're wanting to rely on the implicit initialization (http://eel.is/c++draft/dcl.init#aggr-5)? It seems a bit odd to pass `-Wmissing-field-initializers` and then rely on implicit initialization of fields, so some more details might be helpful.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157879



More information about the cfe-commits mailing list