[clang] Add Clang attribute to ensure that fields are initialized explicitly (PR #102040)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 27 11:46:20 PDT 2024


================
@@ -2837,6 +2837,10 @@ bool QualType::hasNonTrivialToPrimitiveCopyCUnion(const RecordDecl *RD) {
   return RD->hasNonTrivialToPrimitiveCopyCUnion();
 }
 
+bool QualType::hasUninitializedExplicitInitFields(const RecordDecl *RD) {
----------------
erichkeane wrote:

This is a bit of a weird one, why is this in `QualTYpe` but takes the thing anyway?  Should the implementation here be `getAsRecordDecl()->hasUnin...` ?

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


More information about the cfe-commits mailing list