[clang] [clang-tools-extra] [clang] Make `InitListExpr::isExplicit()` work (PR #195175)
Andrey Ali Khan Bolshakov via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 30 13:59:12 PDT 2026
================
@@ -8100,7 +8100,8 @@ static Expr *BuildExpressionFromIntegralTemplateArgumentValue(
static Expr *BuildExpressionFromNonTypeTemplateArgumentValue(
Sema &S, QualType T, const APValue &Val, SourceLocation Loc) {
auto MakeInitList = [&](ArrayRef<Expr *> Elts) -> Expr * {
- auto *ILE = new (S.Context) InitListExpr(S.Context, Loc, Elts, Loc);
+ auto *ILE = new (S.Context)
+ InitListExpr(S.Context, Loc, Elts, Loc, /*isExplicit=*/false);
----------------
bolshakov-a wrote:
For vector types, there may be explicit braces, but at the argument spelling site, not at the substitution site, of course.
https://github.com/llvm/llvm-project/pull/195175
More information about the cfe-commits
mailing list