================ @@ -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, ---------------- mattst88 wrote:
All done, three commits now. I can split out the refactors into a separate PR if you want. https://github.com/llvm/llvm-project/pull/223481 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
