================
@@ -973,6 +973,14 @@ CXXFunctionalCastExpr
*CXXFunctionalCastExpr::CreateEmpty(const ASTContext &C,
CXXFunctionalCastExpr(EmptyShell(), PathSize, HasFPFeatures);
}
+CXXFunctionalCastExpr *CXXFunctionalCastExpr::CreateListInitializer(
+ const ASTContext &C, QualType T, ExprValueKind VK, TypeSourceInfo *Written,
+ CastKind K, Expr *Op, const CXXCastPath *BasePath, FPOptionsOverride FPO) {
+ // List-initialization is represented by null paren locations
+ return Create(C, T, VK, Written, K, Op, BasePath, FPO, SourceLocation(),
+ SourceLocation());
----------------
cor3ntin wrote:
Looking at the code, it's only the LParen that's null - the r parent is needed
to get correct getEnd().
While you fix that can you add a fixme comment in
`CXXFunctionalCastExpr::isListInitialization` (saying we should use a bit to
represent that) ? Thanks
https://github.com/llvm/llvm-project/pull/228340
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits