[clang] [clang-tools-extra] [clang] Make `InitListExpr::isExplicit()` work (PR #195175)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed May 6 05:53:37 PDT 2026


================
@@ -640,7 +641,8 @@ ExprResult InitListChecker::PerformEmptyInit(SourceLocation Loc,
     // the initializer list where possible.
     InitExpr = VerifyOnly ? &DummyInitList
                           : new (SemaRef.Context)
-                                InitListExpr(SemaRef.Context, Loc, {}, Loc);
+                                InitListExpr(SemaRef.Context, Loc, {}, Loc,
+                                             /*isExplicit=*/false);
----------------
AaronBallman wrote:

Isn't this an explicit init list (it's empty, so I thought we're in the `{}` case)?

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


More information about the cfe-commits mailing list