llvm-project/clang/lib/ASTMatchers
Yitzhak Mandelbaum 586f13aeac [AST Matchers] Fix bug in 'optionally' matcher wherein all previous bindings are cleared when all inner matchers fail.
Summary: The implementation of 'optionally' doesn't preserve bindings when none of the submatchers succeed. This patch adds a regression test for that behavior and fixes it.

Reviewers: aaron.ballman, sbenza

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D75365
2020-02-28 13:46:27 -05:00
..
Dynamic [ASTMatchers] Adds a matcher called `hasAnyOperatorName` 2020-02-25 07:51:20 +00:00
ASTMatchFinder.cpp Remove clang::ast_type_traits namespace in favor of clang 2020-02-13 10:46:47 -08:00
ASTMatchersInternal.cpp [AST Matchers] Fix bug in 'optionally' matcher wherein all previous bindings are cleared when all inner matchers fail. 2020-02-28 13:46:27 -05:00
CMakeLists.txt [AST matchers] Add basic matchers for googletest EXPECT/ASSERT calls. 2020-02-21 12:05:15 -05:00
GtestMatchers.cpp Fix MSVC "not all control paths return a value" warning. NFCI. 2020-02-21 18:23:55 +00:00