[ASTMatchers] Fix hasParent while ignoring unwritten nodes
For example, before this patch we can use has() to get from a cxxRewrittenBinaryOperator to its operand, but hasParent doesn't get back to the cxxRewrittenBinaryOperator. This patch fixes that. Differential Revision: https://reviews.llvm.org/D96113
Loading
Please sign in to comment