[clang] [NFC][Clang] Add `setExprs` overload to reduce some code duplication (PR #139749)

Rahul Joshi via cfe-commits cfe-commits at lists.llvm.org
Tue May 13 12:48:01 PDT 2025


================
@@ -501,20 +501,28 @@ class OpenACCClauseWithExprs : public OpenACCClauseWithParams {
 
   /// Used only for initialization, the leaf class can initialize this to
   /// trailing storage.
-  void setExprs(MutableArrayRef<Expr *> NewExprs) {
-    assert(Exprs.empty() && "Cannot change Exprs list");
-    Exprs = NewExprs;
+  void setExprs(MutableArrayRef<Expr *> NewStorage) {
----------------
jurahul wrote:

Reverted the rename

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


More information about the cfe-commits mailing list