llvm-project/clang/unittests
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
..
AST [ASTImporter] Improved import of AlignedAttr. 2020-02-28 09:40:59 +01:00
ASTMatchers [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
Analysis [ASTMatchers] StringRef'ify hasName 2020-01-29 10:53:08 +01:00
Basic Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
CodeGen Avoid ASTContext.h -> TargetInfo.h dep 2020-02-27 14:35:00 -08:00
CrossTU [Tooling] Migrated APIs that take ownership of objects to unique_ptr 2019-08-30 09:29:34 +00:00
DirectoryWatcher [DirectoryWatcher] Fix misuse of FSEvents API and data race 2020-02-11 09:25:38 -08:00
Driver [clang] Replace SmallStr.str().str() with std::string conversion operator. 2020-01-29 21:27:46 -08:00
Format [clang-format] Improve C# handling of spaces in square brackets 2020-02-28 12:44:15 +00:00
Frontend [clang] Replace SmallStr.str().str() with std::string conversion operator. 2020-01-29 21:27:46 -08:00
Index [clang][Index] Visit the default parameter arguements in libindex. 2020-02-17 16:45:04 +01:00
Lex Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Rename Make builtbot happy. 2020-02-25 17:04:38 +01:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Serialization [modules] Do not cache invalid state for modules that we attempted to load. 2020-01-16 17:12:41 -08:00
StaticAnalyzer [analyzer] CheckerContext: Make the Preprocessor available 2020-01-30 17:05:52 +01:00
Tooling Need /bigobj to build SourceCodeTest.cpp with MSVC. 2020-02-27 14:56:29 -08:00
libclang Revert "Revert "Reland "[Support] make report_fatal_error `abort` instead of `exit`""" 2020-02-13 10:16:06 -08:00
CMakeLists.txt [clang] [unittest] Import LLVMTestingSupport if necessary 2019-09-12 13:06:12 +00:00