[clang] Reapply "[Analyzer][CFG] Correctly handle rebuilt default arg and default init expression" (PR #127338)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Feb 15 09:39:38 PST 2025
================
@@ -2464,6 +2464,10 @@ CFGBlock *CFGBuilder::VisitCXXDefaultInitExpr(CXXDefaultInitExpr *Init,
autoCreateBlock();
appendStmt(Block, Init);
}
+
+ // Unlike CXXDefaultArgExpr::getExpr stripped off the top level FullExpr and
+ // ConstantExpr, CXXDefaultInitExpr::getExpr does not do this, so we don't
+ // need to ignore ParenExprs, because the top level will not be a ParenExpr.
----------------
yronglin wrote:
Oh sorry, I missed some changes.
https://github.com/llvm/llvm-project/pull/127338
More information about the cfe-commits
mailing list