LLVM: include/llvm/Support/MSVCErrorWorkarounds.h Source File (original) (raw)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18#ifndef LLVM_SUPPORT_MSVCERRORWORKAROUNDS_H
19#define LLVM_SUPPORT_MSVCERRORWORKAROUNDS_H
20
22
23namespace llvm {
24
25
26
40
41
42
44public:
49
51
56
58
59 template
61 OtherT &&Val,
62 std::enable_if_t<std::is_convertible<OtherT, T>::value> * = nullptr)
64
65 template
68 std::enable_if_t<std::is_convertible<OtherT, T>::value> * = nullptr)
70
71 template
74 std::enable_if_t<!std::is_convertible<OtherT, T>::value> * = nullptr)
76};
77
78}
79
80#endif
Lightweight error class with error context and mandatory checking.
Error & operator=(const Error &Other)=delete
Error()
Create a success value. Prefer using 'Error::success()' for readability.
Error takeError()
Take ownership of the stored error.
Expected & operator=(Expected &&Other)
Move-assign from another Expected.
MSVCPError(MSVCPError &&Other)
Definition MSVCErrorWorkarounds.h:31
MSVCPError(Error Err)
Definition MSVCErrorWorkarounds.h:38
MSVCPError()
Definition MSVCErrorWorkarounds.h:29
MSVCPError & operator=(MSVCPError Other)
Definition MSVCErrorWorkarounds.h:33
MSVCPExpected()
Definition MSVCErrorWorkarounds.h:45
MSVCPExpected(Expected< OtherT > &&Other, std::enable_if_t<!std::is_convertible< OtherT, T >::value > *=nullptr)
Definition MSVCErrorWorkarounds.h:72
MSVCPExpected(Expected< OtherT > &&Other, std::enable_if_t< std::is_convertible< OtherT, T >::value > *=nullptr)
Definition MSVCErrorWorkarounds.h:66
MSVCPExpected(MSVCPExpected &&Other)
Definition MSVCErrorWorkarounds.h:50
MSVCPExpected(OtherT &&Val, std::enable_if_t< std::is_convertible< OtherT, T >::value > *=nullptr)
Definition MSVCErrorWorkarounds.h:60
MSVCPExpected & operator=(MSVCPExpected &&Other)
Definition MSVCErrorWorkarounds.h:52
MSVCPExpected(Error Err)
Definition MSVCErrorWorkarounds.h:57
This class wraps a string in an Error.
This is an optimization pass for GlobalISel generic memory operations.
LLVM_ABI std::error_code inconvertibleErrorCode()
The value returned by this function can be returned from convertToErrorCode for Error values where no...
Error make_error(ArgTs &&... Args)
Make a Error instance representing failure using the given error info type.
OutputIt move(R &&Range, OutputIt Out)
Provide wrappers to std::move which take ranges instead of having to pass begin/end explicitly.
void consumeError(Error Err)
Consume a Error without doing anything.
Implement std::hash so that hash_code can be used in STL containers.