Home
last modified time | relevance | path

Searched refs:ErrorOr (Results 1 – 25 of 634) sorted by relevance

12345678910>>...26

/external/llvm/unittests/Support/
DErrorOrTest.cpp19 ErrorOr<int> t1() { return 1; } in t1()
20 ErrorOr<int> t2() { return errc::invalid_argument; } in t2()
22 TEST(ErrorOr, SimpleValue) { in TEST() argument
23 ErrorOr<int> a = t1(); in TEST()
29 ErrorOr<int> b = a; in TEST()
40 ErrorOr<std::unique_ptr<int> > t3() { in t3()
44 TEST(ErrorOr, Types) { in TEST() argument
46 ErrorOr<int&> a(x); in TEST()
57 TEST(ErrorOr, Covariant) { in TEST() argument
58 ErrorOr<B*> b(ErrorOr<D*>(nullptr)); in TEST()
[all …]
/external/llvm-project/llvm/unittests/Support/
DErrorOrTest.cpp18 ErrorOr<int> t1() { return 1; } in t1()
19 ErrorOr<int> t2() { return errc::invalid_argument; } in t2()
21 TEST(ErrorOr, SimpleValue) { in TEST() argument
22 ErrorOr<int> a = t1(); in TEST()
28 ErrorOr<int> b = a; in TEST()
39 ErrorOr<std::unique_ptr<int> > t3() { in t3()
43 TEST(ErrorOr, Types) { in TEST() argument
45 ErrorOr<int&> a(x); in TEST()
56 TEST(ErrorOr, Covariant) { in TEST() argument
57 ErrorOr<B*> b(ErrorOr<D*>(nullptr)); in TEST()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DErrorOr.h56 class ErrorOr {
57 template <class OtherT> friend class ErrorOr; variable
74 ErrorOr(E ErrorCode,
82 ErrorOr(std::error_code EC) : HasError(true) { in ErrorOr() function
87 ErrorOr(OtherT &&Val,
94 ErrorOr(const ErrorOr &Other) { in ErrorOr() function
99 ErrorOr(
100 const ErrorOr<OtherT> &Other,
107 explicit ErrorOr(
108 const ErrorOr<OtherT> &Other,
[all …]
DMemoryBuffer.h79 static ErrorOr<std::unique_ptr<MemoryBuffer>>
86 static ErrorOr<std::unique_ptr<MemoryBuffer>>
92 static ErrorOr<std::unique_ptr<MemoryBuffer>>
102 static ErrorOr<std::unique_ptr<MemoryBuffer>>
121 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN();
125 static ErrorOr<std::unique_ptr<MemoryBuffer>>
130 static ErrorOr<std::unique_ptr<MemoryBuffer>>
179 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
184 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
241 static ErrorOr<std::unique_ptr<WriteThroughMemoryBuffer>>
[all …]
/external/llvm-project/llvm/include/llvm/Support/
DErrorOr.h55 class ErrorOr {
56 template <class OtherT> friend class ErrorOr; variable
73 ErrorOr(E ErrorCode,
81 ErrorOr(std::error_code EC) : HasError(true) { in ErrorOr() function
86 ErrorOr(OtherT &&Val,
92 ErrorOr(const ErrorOr &Other) { in ErrorOr() function
97 ErrorOr(const ErrorOr<OtherT> &Other,
103 explicit ErrorOr(
104 const ErrorOr<OtherT> &Other,
110 ErrorOr(ErrorOr &&Other) { in ErrorOr() function
[all …]
DMemoryBuffer.h85 static ErrorOr<std::unique_ptr<MemoryBuffer>>
92 static ErrorOr<std::unique_ptr<MemoryBuffer>>
98 static ErrorOr<std::unique_ptr<MemoryBuffer>>
108 static ErrorOr<std::unique_ptr<MemoryBuffer>>
127 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN();
131 static ErrorOr<std::unique_ptr<MemoryBuffer>>
136 static ErrorOr<std::unique_ptr<MemoryBuffer>>
182 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
187 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>>
241 static ErrorOr<std::unique_ptr<WriteThroughMemoryBuffer>>
[all …]
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DErrorOr.h68 class ErrorOr {
69 template <class OtherT> friend class ErrorOr; variable
84 ErrorOr(E ErrorCode,
92 ErrorOr(std::error_code EC) : HasError(true) { in ErrorOr() function
97 ErrorOr(OtherT &&Val,
104 ErrorOr(const ErrorOr &Other) { in ErrorOr() function
109 ErrorOr(
110 const ErrorOr<OtherT> &Other,
117 explicit ErrorOr(
118 const ErrorOr<OtherT> &Other,
[all …]
DMemoryBuffer.h75 static ErrorOr<std::unique_ptr<MemoryBuffer>>
82 static ErrorOr<std::unique_ptr<MemoryBuffer>>
88 static ErrorOr<std::unique_ptr<MemoryBuffer>>
98 static ErrorOr<std::unique_ptr<MemoryBuffer>>
129 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN();
133 static ErrorOr<std::unique_ptr<MemoryBuffer>>
138 static ErrorOr<std::unique_ptr<MemoryBuffer>>
/external/llvm/include/llvm/Support/
DErrorOr.h68 class ErrorOr {
69 template <class OtherT> friend class ErrorOr; variable
84 ErrorOr(E ErrorCode,
92 ErrorOr(std::error_code EC) : HasError(true) { in ErrorOr() function
97 ErrorOr(OtherT &&Val,
104 ErrorOr(const ErrorOr &Other) { in ErrorOr() function
109 ErrorOr(
110 const ErrorOr<OtherT> &Other,
117 explicit ErrorOr(
118 const ErrorOr<OtherT> &Other,
[all …]
/external/openscreen/platform/base/
Derror.h249 class ErrorOr {
251 static ErrorOr<ValueType> None() { in None()
252 static ErrorOr<ValueType> error(Error::Code::kNone); in None()
256 ErrorOr(const ValueType& value) : value_(value), is_value_(true) {} // NOLINT in ErrorOr() function
257 ErrorOr(ValueType&& value) noexcept // NOLINT in ErrorOr() function
260 ErrorOr(const Error& error) : error_(error), is_value_(false) { // NOLINT in ErrorOr() function
263 ErrorOr(Error&& error) noexcept // NOLINT in ErrorOr() function
267 ErrorOr(Error::Code code) : error_(code), is_value_(false) { // NOLINT in ErrorOr() function
270 ErrorOr(Error::Code code, std::string message) in ErrorOr() function
275 ErrorOr(const ErrorOr& other) = delete;
[all …]
Derror_unittest.cc77 ErrorOr<Dummy> error_or1(Error(Error::Code::kCborParsing, "Parse Error")); in TEST()
78 const ErrorOr<Dummy> error_or2(Error::Code::kCborParsing); in TEST()
79 ErrorOr<Dummy> error_or3(Error::Code::kCborParsing, "Parse Error Again"); in TEST()
99 const ErrorOr<Dummy> error_or4(std::move(error_or1)); in TEST()
100 const ErrorOr<Dummy> error_or5 = std::move(error_or3); in TEST()
116 const ErrorOr<int> error_or_integer(1337); in TEST()
124 ErrorOr<Dummy> error_or1(Dummy("Winterfell")); in TEST()
125 ErrorOr<Dummy> error_or2(Dummy("Riverrun")); in TEST()
137 const ErrorOr<Dummy> error_or3(std::move(error_or1)); in TEST()
138 ErrorOr<Dummy> error_or4 = std::move(error_or2); in TEST()
[all …]
/external/openscreen/util/crypto/
Drsa_private_key_unittest.cc78 ErrorOr<RSAPrivateKey> keypair1(RSAPrivateKey::Create(1024)); in TEST()
79 ErrorOr<RSAPrivateKey> keypair2(RSAPrivateKey::Create(2048)); in TEST()
83 ErrorOr<std::vector<uint8_t>> privkey1 = keypair1.value().ExportPrivateKey(); in TEST()
84 ErrorOr<std::vector<uint8_t>> privkey2 = keypair2.value().ExportPrivateKey(); in TEST()
85 ErrorOr<std::vector<uint8_t>> pubkey1 = keypair1.value().ExportPublicKey(); in TEST()
86 ErrorOr<std::vector<uint8_t>> pubkey2 = keypair2.value().ExportPublicKey(); in TEST()
92 ErrorOr<RSAPrivateKey> keypair3( in TEST()
94 ErrorOr<RSAPrivateKey> keypair4( in TEST()
99 ErrorOr<std::vector<uint8_t>> privkey3 = keypair3.value().ExportPrivateKey(); in TEST()
100 ErrorOr<std::vector<uint8_t>> privkey4 = keypair4.value().ExportPrivateKey(); in TEST()
[all …]
Drsa_private_key.h30 static ErrorOr<RSAPrivateKey> Create(uint16_t num_bits);
34 static ErrorOr<RSAPrivateKey> CreateFromPrivateKeyInfo(
39 static ErrorOr<RSAPrivateKey> CreateFromKey(EVP_PKEY* key);
42 ErrorOr<RSAPrivateKey> Copy() const;
48 ErrorOr<std::vector<uint8_t>> ExportPrivateKey() const;
51 ErrorOr<std::vector<uint8_t>> ExportPublicKey() const;
Dcertificate_utils.h31 ErrorOr<bssl::UniquePtr<X509>> CreateSelfSignedX509Certificate(
41 ErrorOr<std::vector<uint8_t>> ExportX509CertificateToDer(
45 ErrorOr<bssl::UniquePtr<X509>> ImportCertificate(const uint8_t* der_x509_cert,
49 ErrorOr<bssl::UniquePtr<EVP_PKEY>> ImportRSAPrivateKey(
55 ErrorOr<uint64_t> ParseDerUint64(const ASN1_INTEGER* asn1int);
/external/llvm/tools/obj2yaml/
Delf2yaml.cpp40 ErrorOr<ELFYAML::RelocationSection *> dumpRelSection(const Elf_Shdr *Shdr);
41 ErrorOr<ELFYAML::RelocationSection *> dumpRelaSection(const Elf_Shdr *Shdr);
42 ErrorOr<ELFYAML::RawContentSection *>
44 ErrorOr<ELFYAML::NoBitsSection *> dumpNoBitsSection(const Elf_Shdr *Shdr);
45 ErrorOr<ELFYAML::Group *> dumpGroup(const Elf_Shdr *Shdr);
46 ErrorOr<ELFYAML::MipsABIFlags *> dumpMipsABIFlags(const Elf_Shdr *Shdr);
50 ErrorOr<ELFYAML::Object *> dump();
60 ErrorOr<ELFYAML::Object *> ELFDumper<ELFT>::dump() { in dump()
89 ErrorOr<ArrayRef<Elf_Word>> TableOrErr = Obj.getSHNDXTable(Sec); in dump()
96 ErrorOr<ELFYAML::RelocationSection *> S = dumpRelaSection(&Sec); in dump()
[all …]
/external/llvm/lib/Object/
DModuleSummaryIndexObjectFile.cpp36 ErrorOr<MemoryBufferRef>
50 ErrorOr<MemoryBufferRef>
75 ErrorOr<MemoryBufferRef> BCOrErr = findBitcodeInMemBuffer(Object); in hasGlobalValueSummaryInMemBuffer()
85 ErrorOr<std::unique_ptr<ModuleSummaryIndexObjectFile>>
91 ErrorOr<MemoryBufferRef> BCOrErr = findBitcodeInMemBuffer(Object); in create()
95 ErrorOr<std::unique_ptr<ModuleSummaryIndex>> IOrErr = in create()
109 ErrorOr<std::unique_ptr<ModuleSummaryIndex>> llvm::getModuleSummaryIndexForFile( in getModuleSummaryIndexForFile()
111 ErrorOr<std::unique_ptr<MemoryBuffer>> FileOrErr = in getModuleSummaryIndexForFile()
117 ErrorOr<std::unique_ptr<object::ModuleSummaryIndexObjectFile>> ObjOrErr = in getModuleSummaryIndexForFile()
/external/llvm/tools/dsymutil/
DBinaryHolder.h56 ErrorOr<std::vector<MemoryBufferRef>>
64 ErrorOr<std::vector<MemoryBufferRef>>
76 ErrorOr<std::vector<MemoryBufferRef>>
80 ErrorOr<const object::ObjectFile &> getObjfileForArch(const Triple &T);
92 ErrorOr<std::vector<const object::ObjectFile *>>
98 ErrorOr<std::vector<const ObjectFileType *>>
119 ErrorOr<const object::ObjectFile &> Get(const Triple &T) { in Get()
126 ErrorOr<const ObjectFileType &> GetAs(const Triple &T) { in GetAs()
/external/llvm-project/clang/lib/Tooling/DependencyScanning/
DDependencyScanningFilesystem.cpp21 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> MaybeFile = in createFileEntry()
25 llvm::ErrorOr<llvm::vfs::Status> Stat = (*MaybeFile)->status(); in createFileEntry()
30 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> MaybeBuffer = in createFileEntry()
152 llvm::ErrorOr<const CachedFileSystemEntry *>
199 llvm::ErrorOr<llvm::vfs::Status>
203 const llvm::ErrorOr<const CachedFileSystemEntry *> Result = in status()
220 static llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>>
224 llvm::ErrorOr<llvm::vfs::Status> status() override { return Stat; } in status()
226 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
241 llvm::ErrorOr<std::unique_ptr<llvm::vfs::File>> MinimizedVFSFile::create( in create()
[all …]
/external/llvm/lib/DebugInfo/CodeView/
DTypeRecord.cpp21 ErrorOr<MemberPointerInfo>
34 ErrorOr<ModifierRecord> ModifierRecord::deserialize(TypeRecordKind Kind, in deserialize()
46 ErrorOr<ProcedureRecord> ProcedureRecord::deserialize(TypeRecordKind Kind, in deserialize()
55 ErrorOr<MemberFunctionRecord>
65 ErrorOr<MemberFuncIdRecord>
73 ErrorOr<ArgListRecord> ArgListRecord::deserialize(TypeRecordKind Kind, in deserialize()
84 ErrorOr<PointerRecord> PointerRecord::deserialize(TypeRecordKind Kind, in deserialize()
106 ErrorOr<NestedTypeRecord>
114 ErrorOr<ArrayRecord> ArrayRecord::deserialize(TypeRecordKind Kind, in deserialize()
123 ErrorOr<ClassRecord> ClassRecord::deserialize(TypeRecordKind Kind, in deserialize()
[all …]
/external/openscreen/util/json/
Djson_serialization.cc20 ErrorOr<Json::Value> Parse(absl::string_view document) { in Parse()
24 return ErrorOr<Json::Value>(Error::Code::kJsonParseError, "empty document"); in Parse()
33 return ErrorOr<Json::Value>(Error::Code::kJsonParseError, error_msg); in Parse()
39 ErrorOr<std::string> Stringify(const Json::Value& value) { in Stringify()
41 return ErrorOr<std::string>(Error::Code::kJsonWriteError, "Empty value"); in Stringify()
61 return ErrorOr<std::string>(Error::Code::kJsonWriteError, "Invalid stream"); in Stringify()
/external/llvm/include/llvm/Object/
DELF.h84 ErrorOr<StringRef> getStringTable(const Elf_Shdr *Section) const;
85 ErrorOr<StringRef> getStringTableForSymtab(const Elf_Shdr &Section) const;
87 ErrorOr<ArrayRef<Elf_Word>> getSHNDXTable(const Elf_Shdr &Section) const;
112 ErrorOr<Elf_Shdr_Range> sections() const;
191 ErrorOr<const Elf_Shdr *> getSection(const Elf_Sym *Sym,
194 ErrorOr<const Elf_Shdr *> getSection(uint32_t Index) const;
200 ErrorOr<StringRef> getSectionName(const Elf_Shdr *Section) const;
202 ErrorOr<ArrayRef<T>> getSectionContentsAsArray(const Elf_Shdr *Sec) const;
203 ErrorOr<ArrayRef<uint8_t> > getSectionContents(const Elf_Shdr *Sec) const;
230 ErrorOr<const typename ELFFile<ELFT>::Elf_Shdr *>
[all …]
/external/openscreen/cast/streaming/
Doffer_messages.h48 ErrorOr<Json::Value> ToJson() const;
69 ErrorOr<Json::Value> ToJson() const;
77 ErrorOr<Json::Value> ToJson() const;
84 ErrorOr<Json::Value> ToJson() const;
100 static ErrorOr<Offer> Parse(const Json::Value& root);
101 ErrorOr<Json::Value> ToJson() const;
Doffer_messages.cc37 ErrorOr<RtpPayloadType> ParseRtpPayloadType(const Json::Value& parent, in ParseRtpPayloadType()
53 ErrorOr<int> ParseRtpTimebase(const Json::Value& parent, in ParseRtpTimebase()
74 ErrorOr<std::array<uint8_t, kAesBytesSize>> ParseAesHexBytes( in ParseAesHexBytes()
100 ErrorOr<Stream> ParseStream(const Json::Value& value, Stream::Type type) { in ParseStream()
165 ErrorOr<AudioStream> ParseAudioStream(const Json::Value& value) { in ParseAudioStream()
179 ErrorOr<AudioCodec> codec = StringToAudioCodec(codec_name.value()); in ParseAudioStream()
192 ErrorOr<Resolution> ParseResolution(const Json::Value& value) { in ParseResolution()
207 ErrorOr<std::vector<Resolution>> ParseResolutions(const Json::Value& parent, in ParseResolutions()
227 ErrorOr<VideoStream> ParseVideoStream(const Json::Value& value) { in ParseVideoStream()
236 ErrorOr<VideoCodec> codec = StringToVideoCodec(codec_name.value()); in ParseVideoStream()
[all …]
Dreceiver_message.h22 static ErrorOr<ReceiverWifiStatus> Parse(const Json::Value& value);
36 static ErrorOr<ReceiverCapability> Parse(const Json::Value& value);
47 static ErrorOr<ReceiverError> Parse(const Json::Value& value);
76 static ErrorOr<ReceiverMessage> Parse(const Json::Value& value);
77 ErrorOr<Json::Value> ToJson() const;
/external/llvm-project/clang/include/clang/Basic/
DFileManager.h84 llvm::StringMap<llvm::ErrorOr<DirectoryEntry &>, llvm::BumpPtrAllocator>
92 llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>, llvm::BumpPtrAllocator>
99 std::unique_ptr<llvm::StringMap<llvm::ErrorOr<FileEntryRef::MapValue>>>
182 llvm::ErrorOr<const DirectoryEntry *>
199 llvm::ErrorOr<const FileEntry *>
260 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
263 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>
271 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>>

12345678910>>...26