Fix Stmt::ignoreImplicit
authorStephen Kelly <steveire@gmail.com>
Tue, 14 Aug 2018 21:33:28 +0000 (21:33 +0000)
committerStephen Kelly <steveire@gmail.com>
Tue, 14 Aug 2018 21:33:28 +0000 (21:33 +0000)
commit0945c8b942092a1744b6bbd6ae489954393e4fda
tree5aab48fb9542caa0bdbc52292e3130ab633a7791
parent1f65600873c3378b54e6074da366330777adcf33
Fix Stmt::ignoreImplicit

Summary:
A CXXBindTemporaryExpr can appear inside an ImplicitCastExpr, and was
not ignored previously.

Fixes the case reported in PR37327.

Reviewers: rsmith, dblaikie, klimek

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D50666

llvm-svn: 339730
clang/lib/AST/Stmt.cpp
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp