================
@@ -134,11 +134,13 @@ bool isEmptyRecordForLayout(const ASTContext &Context, 
QualType T);
 /// element struct", i.e. it has exactly one non-empty field or
 /// exactly one field which is itself a single element
 /// struct. Structures with flexible array members are never
-/// considered single element structs.
+/// considered single element structs. If \p AllowUnions is false, neither T
+/// nor any record it contains may be a union.
 ///
 /// \return The field declaration for the single non-empty field, if
 /// it exists.
-const Type *isSingleElementStruct(QualType T, ASTContext &Context);
+const Type *isSingleElementStruct(QualType T, ASTContext &Context,
----------------
mandlebug wrote:

Thanks for the update. Splitting out the refactor into a seperate NFC PR is the 
way to go. Sorry for the extra work.

https://github.com/llvm/llvm-project/pull/223481
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to