1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00
llvm-mirror/lib
Zachary Turner 7470585f23 [gtest] Create a shared include directory for gtest utilities.
Many times unit tests for different libraries would like to use
the same helper functions for checking common types of errors.

This patch adds a common library with helpers for testing things
in Support, and introduces helpers in here for integrating the
llvm::Error and llvm::Expected<T> classes with gtest and gmock.

Normally, we would just be able to write:

   EXPECT_THAT(someFunction(), succeeded());

but due to some quirks in llvm::Error's move semantics, gmock
doesn't make this easy, so two macros EXPECT_THAT_ERROR() and
EXPECT_THAT_EXPECTED() are introduced to gloss over the difficulties.
Consider this an exception, and possibly only temporary as we
look for ways to improve this.

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

llvm-svn: 305395
2017-06-14 16:41:50 +00:00
..
Analysis Strip UTF8 BOM that got added for some reason in rL305163 2017-06-13 09:58:27 +00:00
AsmParser Add dependency from AsmParser to BinaryFormat. 2017-06-07 04:24:33 +00:00
BinaryFormat Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
Bitcode Align definition of DW_OP_plus with DWARF spec [3/3] 2017-06-14 13:14:38 +00:00
CodeGen [mips] Fix multiprecision arithmetic. 2017-06-14 14:46:30 +00:00
DebugInfo Resubmit "[codeview] Make obj2yaml/yaml2obj support .debug$S..." 2017-06-14 15:59:27 +00:00
Demangle [ItaniumDemangle] Fix a exponential string copying bug 2017-05-28 23:24:52 +00:00
ExecutionEngine Move Object format code to lib/BinaryFormat. 2017-06-07 03:48:56 +00:00
Fuzzer [libFuzzer] really restrict the new test to Linux (fails on Mac/Windows currently) 2017-06-14 00:34:42 +00:00
IR Align definition of DW_OP_plus with DWARF spec [3/3] 2017-06-14 13:14:38 +00:00
IRReader
LineEditor
Linker Support for taking the max of module flags when linking, use for PIE/PIC 2017-05-23 00:08:00 +00:00
LTO IR: Replace the "Linker Options" module flag with "llvm.linker.options" named metadata. 2017-06-12 20:10:48 +00:00
MC [WebAssembly] Cleanup WebAssemblyWasmObjectWriter 2017-06-13 18:51:50 +00:00
Object Use reference to iterate through string table instead of copying. 2017-06-13 21:05:42 +00:00
ObjectYAML Resubmit "[codeview] Make obj2yaml/yaml2obj support .debug$S..." 2017-06-14 15:59:27 +00:00
Option Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Passes [EarlyCSE] Add option to use MemorySSA for function simplification run of EarlyCSE (off by default). 2017-06-10 15:20:03 +00:00
ProfileData Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Support Support: Remove MSVC 2013 workarounds in ThreadPool class. 2017-06-14 00:36:21 +00:00
TableGen Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
Target Revert "[ARM] Support constant pools in data when generating execute-only code." 2017-06-14 15:00:08 +00:00
Testing [gtest] Create a shared include directory for gtest utilities. 2017-06-14 16:41:50 +00:00
ToolDrivers Add dependency from LibDriver to BinaryFormat. 2017-06-07 04:39:50 +00:00
Transforms [InstrProf] Don't take the address of alwaysinline available_externally functions 2017-06-13 22:12:35 +00:00
XRay Sort the remaining #include lines in include/... and lib/.... 2017-06-06 11:49:48 +00:00
CMakeLists.txt [gtest] Create a shared include directory for gtest utilities. 2017-06-14 16:41:50 +00:00
LLVMBuild.txt [gtest] Create a shared include directory for gtest utilities. 2017-06-14 16:41:50 +00:00