/external/llvm/unittests/Support/ |
D | ErrorOrTest.cpp | 19 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/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | ErrorOr.h | 56 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 …]
|
D | MemoryBuffer.h | 79 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 …]
|
D | VirtualFileSystem.h | 106 virtual llvm::ErrorOr<Status> status() = 0; 109 virtual llvm::ErrorOr<std::string> getName() { in getName() 117 virtual llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 249 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0; 252 virtual llvm::ErrorOr<std::unique_ptr<File>> 257 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 271 virtual llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const = 0; 334 llvm::ErrorOr<Status> status(const Twine &Path) override; 335 llvm::ErrorOr<std::unique_ptr<File>> 338 llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override; [all …]
|
/external/swiftshader/third_party/llvm-subzero/include/llvm/Support/ |
D | ErrorOr.h | 68 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 …]
|
D | MemoryBuffer.h | 75 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/ |
D | ErrorOr.h | 68 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 …]
|
D | MemoryBuffer.h | 71 static ErrorOr<std::unique_ptr<MemoryBuffer>> 78 static ErrorOr<std::unique_ptr<MemoryBuffer>> 88 static ErrorOr<std::unique_ptr<MemoryBuffer>> 119 static ErrorOr<std::unique_ptr<MemoryBuffer>> getSTDIN(); 123 static ErrorOr<std::unique_ptr<MemoryBuffer>> 128 static ErrorOr<std::unique_ptr<MemoryBuffer>>
|
/external/openscreen/platform/base/ |
D | error.h | 255 class ErrorOr { 257 static ErrorOr<ValueType> None() { in None() 258 static ErrorOr<ValueType> error(Error::Code::kNone); in None() 262 ErrorOr(const ValueType& value) : value_(value), is_value_(true) {} // NOLINT in ErrorOr() function 263 ErrorOr(ValueType&& value) noexcept // NOLINT in ErrorOr() function 266 ErrorOr(const Error& error) : error_(error), is_value_(false) { // NOLINT in ErrorOr() function 269 ErrorOr(Error&& error) noexcept // NOLINT in ErrorOr() function 273 ErrorOr(Error::Code code) : error_(code), is_value_(false) { // NOLINT in ErrorOr() function 276 ErrorOr(Error::Code code, std::string message) in ErrorOr() function 281 ErrorOr(const ErrorOr& other) = delete; [all …]
|
D | error_unittest.cc | 77 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/ |
D | rsa_private_key_unittest.cc | 78 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 …]
|
D | rsa_private_key.h | 30 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;
|
D | certificate_utils.h | 31 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/ |
D | elf2yaml.cpp | 40 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/DebugInfo/CodeView/ |
D | TypeRecord.cpp | 21 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/llvm/lib/Object/ |
D | ModuleSummaryIndexObjectFile.cpp | 36 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()
|
D | Archive.cpp | 45 ErrorOr<uint32_t> ArchiveMemberHeader::getSize() const { in getSize() 103 ErrorOr<uint64_t> MemberSize = getRawSize(); in Child() 122 ErrorOr<uint64_t> Archive::Child::getSize() const { in getSize() 124 ErrorOr<uint32_t> Size = getHeader()->getSize(); in getSize() 132 ErrorOr<uint64_t> Archive::Child::getRawSize() const { in getRawSize() 133 ErrorOr<uint32_t> Size = getHeader()->getSize(); in getRawSize() 144 ErrorOr<std::string> Archive::Child::getFullName() const { in getFullName() 146 ErrorOr<StringRef> NameOrErr = getName(); in getFullName() 159 ErrorOr<StringRef> Archive::Child::getBuffer() const { in getBuffer() 161 ErrorOr<uint32_t> Size = getSize(); in getBuffer() [all …]
|
/external/llvm/tools/dsymutil/ |
D | BinaryHolder.h | 56 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/include/llvm/Object/ |
D | ELF.h | 84 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 …]
|
D | Archive.h | 41 ErrorOr<uint32_t> getSize() const; 79 ErrorOr<Child> getNext() const; 81 ErrorOr<StringRef> getName() const; 82 ErrorOr<std::string> getFullName() const; 96 ErrorOr<uint64_t> getSize() const; 98 ErrorOr<uint64_t> getRawSize() const; 100 ErrorOr<StringRef> getBuffer() const; 103 ErrorOr<MemoryBufferRef> getMemoryBufferRef() const; 161 ErrorOr<Child> getMember() const;
|
/external/openscreen/util/json/ |
D | json_serialization.cc | 20 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/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | MemoryBuffer.cpp | 107 static ErrorOr<std::unique_ptr<MB>> 125 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>> 142 ErrorOr<std::unique_ptr<MemoryBuffer>> 153 ErrorOr<std::unique_ptr<MemoryBuffer>> 210 static ErrorOr<std::unique_ptr<WritableMemoryBuffer>> 230 ErrorOr<std::unique_ptr<MemoryBuffer>> 238 static ErrorOr<std::unique_ptr<MB>> 244 static ErrorOr<std::unique_ptr<MB>> 258 ErrorOr<std::unique_ptr<WritableMemoryBuffer>> 266 ErrorOr<std::unique_ptr<WritableMemoryBuffer>> [all …]
|
/external/clang/include/clang/Basic/ |
D | VirtualFileSystem.h | 93 virtual llvm::ErrorOr<Status> status() = 0; 95 virtual llvm::ErrorOr<std::string> getName() { in getName() 102 virtual llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 201 virtual llvm::ErrorOr<Status> status(const Twine &Path) = 0; 203 virtual llvm::ErrorOr<std::unique_ptr<File>> 208 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> 221 virtual llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const = 0; 265 llvm::ErrorOr<Status> status(const Twine &Path) override; 266 llvm::ErrorOr<std::unique_ptr<File>> 269 llvm::ErrorOr<std::string> getCurrentWorkingDirectory() const override; [all …]
|
/external/swiftshader/third_party/llvm-subzero/lib/Support/ |
D | MemoryBuffer.cpp | 104 static ErrorOr<std::unique_ptr<MemoryBuffer>> 168 ErrorOr<std::unique_ptr<MemoryBuffer>> 179 ErrorOr<std::unique_ptr<MemoryBuffer>> 235 static ErrorOr<std::unique_ptr<MemoryBuffer>> 255 ErrorOr<std::unique_ptr<MemoryBuffer>> 262 static ErrorOr<std::unique_ptr<MemoryBuffer>> 267 static ErrorOr<std::unique_ptr<MemoryBuffer>> 275 ErrorOr<std::unique_ptr<MemoryBuffer>> Ret = in getFileAux() 338 static ErrorOr<std::unique_ptr<MemoryBuffer>> 416 ErrorOr<std::unique_ptr<MemoryBuffer>> [all …]
|
/external/llvm/include/llvm/DebugInfo/CodeView/ |
D | SymbolRecord.h | 65 static ErrorOr<ProcSym> deserialize(SymbolRecordKind Kind, in deserialize() 104 static ErrorOr<Thunk32Sym> deserialize(SymbolRecordKind Kind, in deserialize() 137 static ErrorOr<TrampolineSym> deserialize(SymbolRecordKind Kind, in deserialize() 169 static ErrorOr<SectionSym> deserialize(SymbolRecordKind Kind, in deserialize() 201 static ErrorOr<CoffGroupSym> deserialize(SymbolRecordKind Kind, in deserialize() 222 static ErrorOr<ScopeEndSym> deserialize(SymbolRecordKind Kind, in deserialize() 241 static ErrorOr<CallerSym> deserialize(SymbolRecordKind Kind, in deserialize() 450 static ErrorOr<InlineSiteSym> deserialize(SymbolRecordKind Kind, in deserialize() 486 static ErrorOr<PublicSym32> deserialize(SymbolRecordKind Kind, in deserialize() 514 static ErrorOr<RegisterSym> deserialize(SymbolRecordKind Kind, in deserialize() [all …]
|