A CXXBindTemporaryExpr can appear inside an ImplicitCastExpr, and was
not ignored previously.
Fixes the case reported in PR37327.
Paths
| Differential D50666
Fix Stmt::ignoreImplicit ClosedPublic Authored by steveire on Aug 13 2018, 2:42 PM.
Details Summary A CXXBindTemporaryExpr can appear inside an ImplicitCastExpr, and was Fixes the case reported in PR37327.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 13 2018, 3:14 PM Closed by commit rL339730: Fix Stmt::ignoreImplicit (authored by steveire). · Explain WhyAug 14 2018, 2:34 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 160452 lib/AST/Stmt.cpp
unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
|
ExprWithCleanups can only appear at the top level. But... maybe it's not worth treating that as a special case.