[clang] [Analyzer] support parenthesized list initialization (PR #148988)
Balazs Benics via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 17 02:23:23 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:
The code duplication still haunts me.
We should at least leave a FIXME comment that this was inspired by ExprEngine::VisitInitListExpr and we should hoist the common parts at some point.
https://github.com/llvm/llvm-project/pull/148988
More information about the cfe-commits
mailing list