1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/unittests
Pavel Labath 2fdb544e39 [Testing/Support] Make matchers work with Expected<T&>
Summary:
This did not work because the ExpectedHolder was trying to hold the
value in an Optional<T*>. Instead of trying to mimic the behavior of
Expected and try to make ExpectedHolder work with references and
non-references, I simply store the reference to the Expected object in
the holder.

I also add a bunch of tests for these matchers, which have helped me
flesh out some problems in my initial implementation of this patch, and
uncovered the fact that we are not consistent in quoting our values in
the matcher output (which I also fix).

Reviewers: zturner, chandlerc

Subscribers: mgorny, llvm-commits

Differential Revision: https://reviews.llvm.org/D40904

llvm-svn: 320025
2017-12-07 10:54:23 +00:00
..
ADT [Support] Add unit test for printLowerCase 2017-11-28 16:11:56 +00:00
Analysis [SCEV][NFC] Introduce isSafeToExpandAt function to SCEVExpander 2017-11-16 05:10:56 +00:00
AsmParser
BinaryFormat [BinaryFormat] Fix out of bounds read. 2017-08-31 12:50:42 +00:00
Bitcode
CodeGen [CodeGen] Use MachineOperand::print in the MIRPrinter for MO_Register. 2017-12-07 10:40:31 +00:00
DebugInfo [CodeView] Add support for content hashing CodeView type records. 2017-12-05 23:08:58 +00:00
ExecutionEngine [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
FuzzMutate [FuzzMutate] Correctly handle vector types in the insertvalue operation 2017-11-30 15:31:13 +00:00
IR [ConstantRange] Support subtraction in makeGuaranteedNoWrapRegion. 2017-12-05 18:14:23 +00:00
LineEditor
Linker Fix build for LLVM unittests 2017-09-15 21:12:13 +00:00
MC Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
MI Fix a bunch more layering of CodeGen headers that are in Target 2017-11-17 01:07:10 +00:00
Object
ObjectYAML
Option [GSoC] Flag value completion for clang 2017-06-20 16:31:31 +00:00
ProfileData [Coverage] Scan ahead for the most-recent completed count (PR35495) 2017-12-07 00:01:15 +00:00
Support [Testing/Support] Make matchers work with Expected<T&> 2017-12-07 10:54:23 +00:00
Target Reapply "[GlobalISel] Remove the GISelAccessor API." 2017-08-15 22:31:51 +00:00
tools [CMake] Use PRIVATE in target_link_libraries for executables 2017-12-05 21:49:56 +00:00
Transforms [asan] Add a full redzone after every stack variable 2017-11-18 01:13:18 +00:00
XRay
CMakeLists.txt Reland 'Classify llvm-cfi-verify.' 2017-10-11 20:35:01 +00:00