[cfe-commits] [PATCH][Review Request]Handle CXXTemproraryObjectExpr
Ted Kremenek
kremenek at apple.com
Tue Oct 4 15:21:08 PDT 2011
Test case please. :)
On Oct 4, 2011, at 1:29 PM, Jim Goodnow II wrote:
> Minor fix to handle this expression class in the core static analyzer engine. It's basically the same as CXXConstructExpr.
>
> - jim
>
> Index: lib/StaticAnalyzer/Core/ExprEngine.cpp
> ===================================================================
> --- lib/StaticAnalyzer/Core/ExprEngine.cpp (revision 141095)
> +++ lib/StaticAnalyzer/Core/ExprEngine.cpp (working copy)
> @@ -455,7 +455,6 @@
> case Stmt::CXXDependentScopeMemberExprClass:
> case Stmt::CXXForRangeStmtClass:
> case Stmt::CXXPseudoDestructorExprClass:
> - case Stmt::CXXTemporaryObjectExprClass:
> case Stmt::CXXThrowExprClass:
> case Stmt::CXXTryStmtClass:
> case Stmt::CXXTypeidExprClass:
> @@ -628,6 +627,7 @@
> break;
> }
>
> + case Stmt::CXXTemporaryObjectExprClass:
> case Stmt::CXXConstructExprClass: {
> const CXXConstructExpr *C = cast<CXXConstructExpr>(S);
> // For block-level CXXConstructExpr, we don't have a destination region.
>
> <CXXTemporaryObject.patch>
More information about the cfe-commits
mailing list