[clang] [Analyzer] support parenthesized list initialization (PR #148988)

Balazs Benics via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 15 22:58:05 PDT 2025


================
@@ -1233,3 +1233,34 @@ void ExprEngine::VisitAttributedStmt(const AttributedStmt *A,
 
   getCheckerManager().runCheckersForPostStmt(Dst, EvalSet, A, *this);
 }
+
+void ExprEngine::VisitCXXParenListInitExpr(const CXXParenListInitExpr *E,
+                                           ExplodedNode *Pred,
+                                           ExplodedNodeSet &Dst) {
----------------
steakhal wrote:

I've noticed that the `ExprEngine::VisitInitListExpr` does something really similar.
Would it make sense to hoist out the common parts and share the underlying implementation?

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


More information about the cfe-commits mailing list