/external/giflib/ |
D | gif_err.c | 18 const char *Err; in GifErrorString() local 22 Err = "Failed to open given file"; in GifErrorString() 25 Err = "Failed to write to given file"; in GifErrorString() 28 Err = "Screen descriptor has already been set"; in GifErrorString() 31 Err = "Image descriptor is still active"; in GifErrorString() 34 Err = "Neither global nor local color map"; in GifErrorString() 37 Err = "Number of pixels bigger than width * height"; in GifErrorString() 40 Err = "Failed to allocate required memory"; in GifErrorString() 43 Err = "Write failed (disk full?)"; in GifErrorString() 46 Err = "Failed to close given file"; in GifErrorString() [all …]
|
/external/llvm-project/llvm/unittests/ExecutionEngine/Orc/ |
D | RPCUtilsTest.cpp | 85 [](ChannelT &C, Error &Err) -> Error { in registerDummyErrorSerialization() argument 86 ErrorAsOutParameter EAO(&Err); in registerDummyErrorSerialization() 88 if (auto Err = deserializeSeq(C, Val)) in registerDummyErrorSerialization() local 89 return Err; in registerDummyErrorSerialization() 90 Err = make_error<DummyError>(Val); in registerDummyErrorSerialization() 190 auto Err = Server.handleOne(); in TEST() local 191 EXPECT_FALSE(!!Err) << "Server failed to handle call to negotiate"; in TEST() 196 auto Err = Server.handleOne(); in TEST() local 197 EXPECT_FALSE(!!Err) << "Server failed to handle call to void(bool)"; in TEST() 203 auto Err = Client.callAsync<DummyRPCAPI::VoidBool>( in TEST() local [all …]
|
/external/rust/crates/nom/src/multi/ |
D | mod.rs | 6 use crate::internal::{Err, IResult, Needed}; 49 Err(Err::Error(_)) => return Ok((i, acc)), in many0() 50 Err(e) => return Err(e), in many0() 53 return Err(Err::Error(E::from_error_kind(i, ErrorKind::Many0))); in many0() 111 Err(Err::Error(err)) => return Err(Err::Error(E::append(i, ErrorKind::Many1, err))), in many1() 112 Err(e) => return Err(e), in many1() 120 Err(Err::Error(_)) => return Ok((i, acc)), in many1() 121 Err(e) => return Err(e), in many1() 124 return Err(Err::Error(E::from_error_kind(i, ErrorKind::Many1))); in many1() 181 Err(Err::Error(_)) => { in many_till() [all …]
|
D | macros.rs | 330 use $crate::Err; 333 Err(e) => Err(Err::convert(e)), 336 Err(e) => Err(Err::convert(e)), 533 use crate::internal::{Err, IResult, Needed}; 570 Err($crate::Err::Error($crate::error::make_error($i, $crate::error::ErrorKind::Tag))) 572 Err($crate::Err::Incomplete(Needed::Size(blen))) 602 assert_eq!(multi_empty(d), Err(Err::Error(error_position!(d, ErrorKind::SeparatedList)))); in separated_list() 608 assert_eq!(multi(f), Err(Err::Incomplete(Needed::Size(4)))); in separated_list() 609 assert_eq!(multi_longsep(g), Err(Err::Incomplete(Needed::Size(2)))); in separated_list() 610 assert_eq!(multi(h), Err(Err::Incomplete(Needed::Size(4)))); in separated_list() [all …]
|
/external/rust/crates/nom/src/character/ |
D | streaming.rs | 5 use crate::internal::{Err, IResult, Needed}; 37 None => Err(Err::Incomplete(Needed::Size(1))), in char() 39 Err(Err::Error(Error::from_char(i, c))) in char() 67 None => Err(Err::Incomplete(Needed::Size(1))), in one_of() 68 Some((_, false)) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::OneOf))), in one_of() 95 None => Err(Err::Incomplete(Needed::Size(1))), in none_of() 96 Some((_, false)) => Err(Err::Error(Error::from_error_kind(i, ErrorKind::NoneOf))), in none_of() 125 CompareResult::Incomplete => Err(Err::Incomplete(Needed::Size(2))), in crlf() 128 Err(Err::Error(E::from_error_kind(input, e))) in crlf() 161 Err(Err::Incomplete(Needed::Unknown)) in not_line_ending() [all …]
|
/external/rust/crates/nom/src/ |
D | internal.rs | 13 pub type IResult<I, O, E=(I,ErrorKind)> = Result<(I, O), Err<E>>; 55 pub enum Err<E> { enum 66 impl<E> Err<E> { implementation 69 if let Err::Incomplete(_) = self { in is_incomplete() 77 pub fn map<E2, F>(self, f: F) -> Err<E2> in map() 81 Err::Incomplete(n) => Err::Incomplete(n), in map() 82 Err::Failure(t) => Err::Failure(f(t)), in map() 83 Err::Error(t) => Err::Error(f(t)), in map() 88 pub fn convert<F>(e: Err<F>) -> Self in convert() 95 impl<T> Err<(T, ErrorKind)> { impl [all …]
|
D | regexp.rs | 30 use $crate::{Err,error::ErrorKind,IResult}; 38 let res: IResult<_,_> = Err(Err::Error(error_position!($i, ErrorKind::RegexpMatch))); 55 use $crate::{Err,error::ErrorKind,IResult}; 63 let res: IResult<_,_> = Err(Err::Error(error_position!($i, ErrorKind::RegexpMatch))); 79 use $crate::{Err,error::ErrorKind,IResult}; 87 let res: IResult<_,_> = Err(Err::Error(error_position!($i, ErrorKind::RegexpMatch))); 104 use $crate::{Err,error::ErrorKind,IResult}; 112 let res: IResult<_,_> = Err(Err::Error(error_position!($i, ErrorKind::RegexpMatch))); 128 use $crate::{Err,error::ErrorKind,IResult}; 135 let res: IResult<_,_> = Err(Err::Error(error_position!($i, ErrorKind::RegexpFind))); [all …]
|
D | whitespace.rs | 101 use $crate::{Err,IResult}; 112 Err(e) => Err(Err::convert(e)), 148 Err(e) => Err(e), 166 Err(e) => Err(e), 184 Err(e) => Err(e), 208 Err(e) => Err(e), 237 Err(e) => Err(e), 249 Err(e) => Err(e), 264 Err(e) => Err(e), 276 Err(e) => Err(e), [all …]
|
/external/llvm-project/llvm/lib/Support/ |
D | DataExtractor.cpp | 41 T DataExtractor::getU(uint64_t *offset_ptr, Error *Err) const { in getU() 42 ErrorAsOutParameter ErrAsOut(Err); in getU() 44 if (isError(Err)) in getU() 48 if (!prepareRead(offset, sizeof(T), Err)) in getU() 61 Error *Err) const { in getUs() 62 ErrorAsOutParameter ErrAsOut(Err); in getUs() 63 if (isError(Err)) in getUs() 68 if (!prepareRead(offset, sizeof(*dst) * count, Err)) in getUs() 72 *value_ptr = getU<T>(offset_ptr, Err); in getUs() 80 uint8_t DataExtractor::getU8(uint64_t *offset_ptr, llvm::Error *Err) const { in getU8() [all …]
|
/external/llvm-project/clang/unittests/Tooling/ |
D | RefactoringTest.cpp | 146 auto Err = Replaces.add(Deletion); in TEST_F() local 147 EXPECT_TRUE(!Err); in TEST_F() 148 llvm::consumeError(std::move(Err)); in TEST_F() 151 Err = Replaces.add(OverlappingReplacement); in TEST_F() 152 EXPECT_TRUE(checkReplacementError(std::move(Err), in TEST_F() 157 Err = Replaces.add(Replacement(ContainedReplacement)); in TEST_F() 158 EXPECT_TRUE(checkReplacementError(std::move(Err), in TEST_F() 163 Err = Replaces.add(WrongPathReplacement); in TEST_F() 164 EXPECT_TRUE(checkReplacementError(std::move(Err), in TEST_F() 175 auto Err = Replaces.add(R); in TEST_F() local [all …]
|
/external/rust/crates/nom/src/bytes/ |
D | macros.rs | 427 use $crate::{Err,Needed,IResult,error::ErrorKind}; 435 Err(Err::Incomplete(Needed::Size(1 + $substr.input_len()))) 439 Err(Err::Error(error_position!($i, e))) 452 use crate::internal::{Err, Needed, IResult}; 465 use $crate::Err; 474 None => Err::<_,_>(Err::Incomplete(Needed::Size(1))), 475 Some(false) => Err(Err::Error(error_position!($i, ErrorKind::OneOf))), 494 assert_eq!(a_or_b(c), Err(Err::Error(error_position!(c, ErrorKind::IsA)))); in is_a() 511 assert_eq!(a_or_b(c), Err(Err::Error(error_position!(c, ErrorKind::IsNot)))); in is_not() 517 assert_eq!(a_or_b(e), Err(Err::Incomplete(Needed::Size(1)))); in is_not() [all …]
|
/external/rust/crates/nom/src/bits/ |
D | mod.rs | 11 use crate::internal::{Err, IResult, Needed}; 47 Err(Err::Incomplete(n)) => Err(Err::Incomplete(n.map(|u| u / 8 + 1))), in bits() 48 Err(Err::Error(e)) => Err(Err::Error(e.convert())), in bits() 49 Err(Err::Failure(e)) => Err(Err::Failure(e.convert())), in bits() 101 Err(Err::Incomplete(Needed::Unknown)) => Err(Err::Incomplete(Needed::Unknown)), in bytes() 102 Err(Err::Incomplete(Needed::Size(sz))) => Err(match sz.checked_mul(8) { in bytes() 103 Some(v) => Err::Incomplete(Needed::Size(v)), in bytes() 104 None => Err::Failure(E2::from_error_kind(i, ErrorKind::TooLarge)), in bytes() 106 Err(Err::Error(e)) => Err(Err::Error(e.convert())), in bytes() 107 Err(Err::Failure(e)) => Err(Err::Failure(e.convert())), in bytes()
|
/external/llvm-project/clang/lib/AST/ |
D | ASTImporter.cpp | 193 template <typename T> T importChecked(Error &Err, const T &From) { in importChecked() argument 195 if (Err) in importChecked() 199 Err = MaybeVal.takeError(); in importChecked() 205 ExplicitSpecifier importExplicitSpecifier(Error &Err, 707 if (auto Err = ImportTemplateArgumentListInfo(Container, ToTAInfo)) in ImportTemplateArgumentListInfo() local 708 return Err; in ImportTemplateArgumentListInfo() 738 if (Error Err = importInto(std::get<0>(Result), FTSInfo->getTemplate())) in ImportFunctionTemplateWithTemplateArgsFromSpecialization() local 739 return std::move(Err); in ImportFunctionTemplateWithTemplateArgsFromSpecialization() 743 if (Error Err = ImportTemplateArguments(TemplArgs.data(), TemplArgs.size(), in ImportFunctionTemplateWithTemplateArgsFromSpecialization() local 745 return std::move(Err); in ImportFunctionTemplateWithTemplateArgsFromSpecialization() [all …]
|
/external/rust/crates/cexpr/src/ |
D | lib.rs | 22 pub use nom::{error::ErrorKind, Err, IResult, Needed}; 113 Err(nom::Err::Incomplete(n)) => Err(nom::Err::Incomplete(n)), in to_cexpr_result() 114 Err(nom::Err::Error(e)) => Err(nom::Err::Error(e.into())), in to_cexpr_result() 115 Err(nom::Err::Failure(e)) => Err(nom::Err::Failure(e.into())), in to_cexpr_result() 133 Err(nom::Err::Error((rem, ErrorKind::Partial).into())) in assert_full_parse() 136 Err(nom::Err::Incomplete(n)) => Err(nom::Err::Incomplete(n)), in assert_full_parse() 137 Err(nom::Err::Failure(e)) => Err(nom::Err::Failure(e)), in assert_full_parse() 138 Err(nom::Err::Error(e)) => Err(nom::Err::Error(e)), in assert_full_parse()
|
/external/rust/crates/nom/src/sequence/ |
D | macros.rs | 377 Err(e) => Err(e), 396 Err(e) => Err(e), 415 Err(e) => Err(e), 430 Err(e) => Err(e), 476 use crate::internal::{Err, IResult, Needed}; 509 Err($crate::Err::Error(error_position!($i, $crate::error::ErrorKind::Tag))) 511 Err($crate::Err::Incomplete(Needed::Size(blen))) 525 Err($crate::Err::Incomplete(Needed::Size(cnt))) 614 Err(Err::Error(error_node_position!(blah, in add_err() 620 assert_eq!(res_b, Err(Err::Error(error_node_position!(&b"ijklblah"[..], ErrorKind::Eof, in add_err() [all …]
|
/external/llvm-project/llvm/unittests/ADT/ |
D | FallibleIteratorTest.cpp | 120 Error Err = Error::success(); in TEST() local 122 make_fallible_range<FallibleCollectionWalker>(begin, end, Err)) in TEST() 124 cantFail(std::move(Err)); in TEST() 137 Error Err = Error::success(); in TEST() local 139 make_fallible_range<FallibleCollectionWalker>(begin, end, Err)) in TEST() 142 EXPECT_THAT_ERROR(std::move(Err), Failed()) << "Expected failure value"; in TEST() 155 Error Err = Error::success(); in TEST() local 157 make_fallible_range<FallibleCollectionWalker>(begin, end, Err)) { in TEST() 179 Error Err = Error::success(); in TEST() 181 make_fallible_range<FallibleCollectionWalker>(begin, end, Err)) in TEST() [all …]
|
/external/rust/crates/chrono/src/format/ |
D | parsed.rs | 121 Err(IMPOSSIBLE) in set_if_consistent() 173 return Err(OUT_OF_RANGE); in set_year_div_100() 182 return Err(OUT_OF_RANGE); in set_year_mod_100() 197 return Err(OUT_OF_RANGE); in set_isoyear_div_100() 206 return Err(OUT_OF_RANGE); in set_isoyear_mod_100() 265 return Err(OUT_OF_RANGE); in set_hour12() 338 return Err(OUT_OF_RANGE); in to_naive_date() 344 Err(IMPOSSIBLE) in to_naive_date() 352 return Err(OUT_OF_RANGE); in to_naive_date() 363 (None, Some(_), None) => Err(NOT_ENOUGH), in to_naive_date() [all …]
|
/external/llvm-project/llvm/include/llvm/ExecutionEngine/Orc/RPC/ |
D | RPCSerialization.h | 309 if (auto Err = in serialize() local 312 return Err; in serialize() 313 if (auto Err = SequenceTraits<ChannelT>::emitSeparator(C)) in serialize() local 314 return Err; in serialize() 322 if (auto Err = in deserialize() local 324 return Err; in deserialize() 325 if (auto Err = SequenceTraits<ChannelT>::consumeSeparator(C)) in deserialize() local 326 return Err; in deserialize() 350 std::function<Error(ChannelT &C, Error &Err)>; 381 if (auto Err = serializeSeq(C, *KeyName)) in registerErrorType() local [all …]
|
/external/rust/crates/nom/tests/ |
D | overflow.rs | 7 use nom::{Err, Needed}; 35 Err(Err::Incomplete(Needed::Size(18446744073709551615))) in overflow_incomplete_do_parse() 43 Err(Err::Incomplete(Needed::Size(18446744073709551615))) in overflow_incomplete_tuple() 55 Err(Err::Incomplete(Needed::Size(18446744073709551615))) in overflow_incomplete_length_bytes() 67 Err(Err::Incomplete(Needed::Size(18446744073709551599))) in overflow_incomplete_many0() 79 Err(Err::Incomplete(Needed::Size(18446744073709551599))) in overflow_incomplete_many1() 91 Err(Err::Incomplete(Needed::Size(18446744073709551599))) in overflow_incomplete_many_till() 103 Err(Err::Incomplete(Needed::Size(18446744073709551599))) in overflow_incomplete_many_m_n() 114 Err(Err::Incomplete(Needed::Size(18446744073709551599))) in overflow_incomplete_count() 126 Err(Err::Incomplete(Needed::Size(18446744073709551598))) in overflow_incomplete_length_count() [all …]
|
/external/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
D | EHFrameSupport.cpp | 60 if (auto Err = processBlock(G, B, BCache)) in operator ()() local 61 return Err; in operator ()() 95 if (auto Err = BlockReader.readInteger(Length)) in processBlock() local 96 return Err; in processBlock() 98 if (auto Err = BlockReader.skip(Length)) in processBlock() local 99 return Err; in processBlock() 102 if (auto Err = BlockReader.readInteger(ExtendedLength)) in processBlock() local 103 return Err; in processBlock() 104 if (auto Err = BlockReader.skip(ExtendedLength)) in processBlock() local 105 return Err; in processBlock() [all …]
|
/external/llvm-project/llvm/examples/OrcV2Examples/OrcV2CBindingsRemovableCode/ |
D | OrcV2CBindingsRemovableCode.c | 18 int handleError(LLVMErrorRef Err) { in handleError() argument 19 char *ErrMsg = LLVMGetErrorMessage(Err); in handleError() 85 LLVMErrorRef Err; in main() local 86 if ((Err = LLVMOrcCreateLLJIT(&J, 0))) { in main() 87 MainResult = handleError(Err); in main() 100 LLVMErrorRef Err; in main() local 101 if ((Err = LLVMOrcLLJITAddLLVMIRModuleWithRT(J, RT, TSM))) { in main() 105 MainResult = handleError(Err); in main() 114 LLVMErrorRef Err; in main() local 115 if ((Err = LLVMOrcLLJITLookup(J, &SumAddr, "sum"))) { in main() [all …]
|
/external/llvm-project/llvm/lib/AsmParser/ |
D | Parser.cpp | 26 ModuleSummaryIndex *Index, SMDiagnostic &Err, in parseAssemblyInto() argument 34 return LLParser(F.getBuffer(), SM, Err, M, Index, in parseAssemblyInto() 40 ModuleSummaryIndex *Index, SMDiagnostic &Err, in parseAssemblyInto() argument 43 return ::parseAssemblyInto(F, M, Index, Err, Slots, in parseAssemblyInto() 48 llvm::parseAssembly(MemoryBufferRef F, SMDiagnostic &Err, LLVMContext &Context, in parseAssembly() argument 54 if (parseAssemblyInto(F, M.get(), nullptr, Err, Slots, DataLayoutCallback)) in parseAssembly() 61 SMDiagnostic &Err, in parseAssemblyFile() argument 67 Err = SMDiagnostic(Filename, SourceMgr::DK_Error, in parseAssemblyFile() 72 return parseAssembly(FileOrErr.get()->getMemBufferRef(), Err, Context, Slots); in parseAssemblyFile() 76 parseAssemblyWithIndex(MemoryBufferRef F, SMDiagnostic &Err, in parseAssemblyWithIndex() argument [all …]
|
/external/rust/crates/nom/src/combinator/ |
D | macros.rs | 322 use $crate::Err; 330 Err(Err::Incomplete(x)) => Err(Err::Incomplete(x)), 332 Err(Err::Error(e)) | Err(Err::Failure(e)) => { 333 return Err(Err::Failure($crate::error::append_error($i, $code, e))) 344 use $crate::Err; 352 Err(Err::Incomplete(x)) => Err(Err::Incomplete(x)), 354 Err(Err::Error(e)) | Err(Err::Failure(e)) => { 355 return Err(Err::Failure(e)) 391 use $crate::{Err,error::ErrorKind}; 395 Err(Err::Error(e)) => { [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/JITLink/ |
D | EHFrameSupport.cpp | 58 if (auto Err = processBlock(G, B, BCache)) in operator ()() local 59 return Err; in operator ()() 93 if (auto Err = BlockReader.readInteger(Length)) in processBlock() local 94 return Err; in processBlock() 96 if (auto Err = BlockReader.skip(Length)) in processBlock() local 97 return Err; in processBlock() 100 if (auto Err = BlockReader.readInteger(ExtendedLength)) in processBlock() local 101 return Err; in processBlock() 102 if (auto Err = BlockReader.skip(ExtendedLength)) in processBlock() local 103 return Err; in processBlock() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
D | DataExtractor.cpp | 28 bool isLittleEndian, const char *Data, llvm::Error *Err) { in getU() argument 29 ErrorAsOutParameter ErrAsOut(Err); in getU() 31 if (isError(Err)) in getU() 36 unexpectedEndReached(Err); in getU() 51 llvm::Error *Err) { in getUs() argument 52 ErrorAsOutParameter ErrAsOut(Err); in getUs() 53 if (isError(Err)) in getUs() 59 unexpectedEndReached(Err); in getUs() 64 *value_ptr = getU<T>(offset_ptr, de, isLittleEndian, Data, Err); in getUs() 72 uint8_t DataExtractor::getU8(uint64_t *offset_ptr, llvm::Error *Err) const { in getU8() [all …]
|