================ @@ -551,3 +551,14 @@ struct full_of_empty empty_test_2(void) { struct full_of_empty e; return e; // no-warning } + +struct with_explicit_field { + int x; + int y [[clang::requires_explicit_initialization]]; // expected-note 2{{'y' declared here}} ---------------- erichkeane wrote:
Not a new thing, its been around a while. But Aaron and I (more so, me) have made requiring these in review a thing we do for new code. Its particularly important in template reviews, but makes reading diagnostic tests significantly easier, as well as editing it in the future. https://github.com/llvm/llvm-project/pull/102040 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits