[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:50:31 PDT 2026
================
@@ -649,8 +649,8 @@ BuiltinTypeMethodBuilder &BuiltinTypeMethodBuilder::concat(V Vec, S Scalar,
}
Elts.push_back(ScalarExpr);
- auto *InitList =
- new (AST) InitListExpr(AST, SourceLocation(), Elts, SourceLocation());
+ auto *InitList = new (AST) InitListExpr(
+ AST, SourceLocation(), Elts, SourceLocation(), /*isExplicit=*/false);
----------------
bolshakov-a wrote:
I guess this initializer list should be marked as implicit because it is inside a builtin HLSL declaration. CC @s-perron
https://github.com/llvm/llvm-project/pull/195175
More information about the cfe-commits
mailing list