llvm-project/clang/lib/ASTMatchers
Loïc Joly cba56e026c [ASTMatcher] Correct memoization bug ignoring direction (descendants or ancestors)
Summary:
In ASTMatcher, when we have `has(...)` and `hasParent(...)` called with the same internal matcher on the same node, the memoization process will mix-up the two calls because the direction of the traversal is not part of the memoization key.

This patch adds this information.

Reviewers: klimek

Reviewed By: klimek

Subscribers: Godin, njames93, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D80025
2020-06-22 12:56:29 +02:00
..
Dynamic Fixed ASTMatchers registry and regen ast docs 2020-06-22 10:56:20 +01:00
ASTMatchFinder.cpp [ASTMatcher] Correct memoization bug ignoring direction (descendants or ancestors) 2020-06-22 12:56:29 +02:00
ASTMatchersInternal.cpp [ASTMatchers] Matchers related to C++ inheritance 2020-05-29 12:38:01 -07:00
CMakeLists.txt [OpenMP] "UnFix" layering problem with FrontendOpenMP 2020-04-07 14:41:18 -05:00
GtestMatchers.cpp Fix MSVC "not all control paths return a value" warning. NFCI. 2020-02-21 18:23:55 +00:00