llvm-project/clang/lib
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
..
ARCMigrate Avoid SourceManager.h include in RawCommentList.h, add missing incs 2020-02-27 13:49:40 -08: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 Avoid SourceManager.h include in RawCommentList.h, add missing incs 2020-02-27 13:49:40 -08:00
Basic Forward declare FileEntry and DirectoryEntry in Module.h 2020-02-27 10:18:06 -08:00
CodeGen Avoid ASTContext.h -> TargetInfo.h dep 2020-02-27 14:35:00 -08:00
CrossTU [clang] Replace SmallStr.str().str() with std::string conversion operator. 2020-01-29 21:27:46 -08:00
DirectoryWatcher Add missing newlines at EOF; NFC 2020-02-12 15:57:25 +00:00
Driver [Hexagon] Do not use init_arrays by default 2020-02-27 09:16:25 -06:00
Edit [C++2a] Add __builtin_bit_cast, used to implement std::bit_cast 2019-07-02 18:28:13 +00:00
Format [clang-format] Improve C# handling of spaces in square brackets 2020-02-28 12:44:15 +00:00
Frontend [WebAssembly] Mangle the argc/argv `main` as `__wasm_argc_argv`. 2020-02-27 07:55:36 -08:00
FrontendTool Make llvm::StringRef to std::string conversions explicit. 2020-01-28 23:25:25 +01:00
Headers [Mips] Add intrinsics for 4-byte and 8-byte MSA loads/stores. 2020-02-11 11:47:30 +01:00
Index Avoid SourceManager.h include in RawCommentList.h, add missing incs 2020-02-27 13:49:40 -08:00
Lex Forward declare FileEntry and DirectoryEntry in Module.h 2020-02-27 10:18:06 -08:00
Parse [ms] Rename ParsingInlineAsm functions/variables to reflect MS-specificity. 2020-02-26 15:19:40 -05:00
Rewrite [Rewrite][NFC] Add FIXMEs and tests for RemoveLineIfEmpty bug 2019-08-15 21:17:48 +00:00
Sema Avoid SourceManager.h include in RawCommentList.h, add missing incs 2020-02-27 13:49:40 -08:00
Serialization Revert "make -fmodules-codegen and -fmodules-debuginfo work also with PCHs" 2020-02-27 14:33:43 +01:00
StaticAnalyzer Add some missing header dependencies 2020-02-27 14:32:12 -08:00
Tooling Avoid SourceManager.h include in RawCommentList.h, add missing incs 2020-02-27 13:49:40 -08:00
CMakeLists.txt Reland [clang] DirectoryWatcher 2019-07-12 20:34:10 +00:00