mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-23 19:59:57 +00:00
83a953d909
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305395 91177308-0d34-0410-b5e6-96231b3b80d8
50 lines
936 B
Plaintext
50 lines
936 B
Plaintext
;===- ./lib/LLVMBuild.txt --------------------------------------*- Conf -*--===;
|
|
;
|
|
; The LLVM Compiler Infrastructure
|
|
;
|
|
; This file is distributed under the University of Illinois Open Source
|
|
; License. See LICENSE.TXT for details.
|
|
;
|
|
;===------------------------------------------------------------------------===;
|
|
;
|
|
; This is an LLVMBuild description file for the components in this subdirectory.
|
|
;
|
|
; For more information on the LLVMBuild system, please see:
|
|
;
|
|
; http://llvm.org/docs/LLVMBuild.html
|
|
;
|
|
;===------------------------------------------------------------------------===;
|
|
|
|
[common]
|
|
subdirectories =
|
|
Analysis
|
|
AsmParser
|
|
Bitcode
|
|
CodeGen
|
|
DebugInfo
|
|
Demangle
|
|
ExecutionEngine
|
|
LineEditor
|
|
Linker
|
|
IR
|
|
IRReader
|
|
LTO
|
|
MC
|
|
Object
|
|
BinaryFormat
|
|
ObjectYAML
|
|
Option
|
|
Passes
|
|
ProfileData
|
|
Support
|
|
TableGen
|
|
Target
|
|
Testing
|
|
ToolDrivers
|
|
Transforms
|
|
|
|
[component_0]
|
|
type = Group
|
|
name = Libraries
|
|
parent = $ROOT
|