================
@@ -62,6 +62,52 @@ FieldSet getObjectFields(QualType Type);
 bool containsSameFields(const FieldSet &Fields,
                         const RecordStorageLocation::FieldToLoc &FieldLocs);
 
+/// Returns the fields of a `RecordDecl` that are initialized by an
+/// `InitListExpr`, in the order in which they appear in
+/// `InitListExpr::inits()`.
+/// `Init->getType()` must be a record type.
+std::vector<const FieldDecl *>
+getFieldsForInitListExpr(const InitListExpr *InitList);
----------------
martinboehme wrote:

This appears to be used only in DataflowEnvironment.cpp -- would suggest simply 
making it a static function there (not exposed in any header).

(I believe it used to be that this was used more widely, but 
`RecordInitListHelper` made that unnecessary, and I didn't notice that when I 
introduced this class?)

https://github.com/llvm/llvm-project/pull/88534
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to