[AST] Fix traversal over CXXConstructExpr in Syntactic mode
authorStephen Kelly <steveire@gmail.com>
Sun, 21 Jun 2020 12:31:27 +0000 (13:31 +0100)
committerStephen Kelly <steveire@gmail.com>
Fri, 30 Oct 2020 12:14:41 +0000 (12:14 +0000)
commit52ff86d25598175d3304498b14c0f6c780e46ae3
treecc058ed2d4b21c475ba64d5521f114b28d706c6c
parent81b96bb6f1caee90ad64c9c7c80b55c163b1f6a8
[AST] Fix traversal over CXXConstructExpr in Syntactic mode

Summary:
Skip over elidable nodes, and ensure that intermediate
CXXFunctionalCastExpr nodes are also skipped if they are semantic.

Reviewers: klimek, ymandel

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82278
clang/lib/AST/Expr.cpp
clang/lib/AST/ParentMapContext.cpp
clang/unittests/AST/ASTTraverserTest.cpp
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp