llvm-project/clang/unittests/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 One more batch of things found by g++ 6 2020-01-29 00:50:34 +01:00
ASTMatchersInternalTest.cpp Remove clang::ast_type_traits namespace in favor of clang 2020-02-13 10:46:47 -08:00
ASTMatchersNarrowingTest.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
ASTMatchersNodeTest.cpp [clang][AST] Add an AST matcher for deducedTemplateSpeializationType. 2020-02-03 12:11:44 +01:00
ASTMatchersTest.h Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
ASTMatchersTraversalTest.cpp [ASTMatchers] Adds a matcher called `hasAnyOperatorName` 2020-02-25 07:51:20 +00:00
CMakeLists.txt [AST matchers] Add basic matchers for googletest EXPECT/ASSERT calls. 2020-02-21 12:05:15 -05:00
GtestMatchersTest.cpp [AST matchers] Add basic matchers for googletest EXPECT/ASSERT calls. 2020-02-21 12:05:15 -05:00