[all-commits] [llvm/llvm-project] e4d5f0: [ASTMatchers] Fix hasParent while ignoring unwritt...
Stephen Kelly via All-commits
all-commits at lists.llvm.org
Thu Feb 18 07:04:25 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e4d5f00093bec4099f1d0496181dc670c42ac220
https://github.com/llvm/llvm-project/commit/e4d5f00093bec4099f1d0496181dc670c42ac220
Author: Stephen Kelly <steveire at gmail.com>
Date: 2021-02-18 (Thu, 18 Feb 2021)
Changed paths:
M clang/include/clang/AST/ParentMapContext.h
M clang/lib/AST/ParentMapContext.cpp
M clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
Log Message:
-----------
[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
More information about the All-commits
mailing list