OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:ErrorOr
(Results
1 - 2
of
2
) sorted by null
/external/llvm/unittests/Support/
ErrorOrTest.cpp
1
//===- unittests/ErrorOrTest.cpp -
ErrorOr
.h tests ------------------------===//
10
#include "llvm/Support/
ErrorOr
.h"
20
ErrorOr
<int> t1() {return 1;}
21
ErrorOr
<int> t2() { return errc::invalid_argument; }
23
TEST(
ErrorOr
, SimpleValue) {
24
ErrorOr
<int> a = t1();
37
ErrorOr
<std::unique_ptr<int> > t3() {
42
TEST(
ErrorOr
, Types) {
44
ErrorOr
<int&> a(x);
48
EXPECT_FALSE(
ErrorOr
<void>(errc::broken_pipe))
[
all
...]
/external/llvm/include/llvm/Support/
ErrorOr.h
1
//===- llvm/Support/
ErrorOr
.h - Error Smart Pointer -----------------------===//
12
/// Provides
ErrorOr
<T> smart pointer.
97
///
ErrorOr
<T> is a pointer-like class that represents the result of an
105
///
ErrorOr
<Buffer> getBuffer();
114
///
ErrorOr
<T> also supports user defined data for specific error_codes. To use
142
///
ErrorOr
<int> foo() {
164
class
ErrorOr
{
165
template <class OtherT> friend class
ErrorOr
;
181
ErrorOr
() : IsValid(false) {}
184
ErrorOr
(E ErrorCode, typename enable_if_c<is_error_code_enum<E>::value |
[
all
...]
Completed in 136 milliseconds