|
reference, declaration → definition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced
|
References
include/llvm/DebugInfo/DWARF/DWARFListTable.h 223 return createStringError(errc::invalid_argument,
235 return createStringError(errc::illegal_byte_sequence,
include/llvm/Support/Errc.h 78 inline std::error_code make_error_code(errc E) {
include/llvm/Support/Error.h 330 template <typename ErrT, typename... ArgTs> Error make_error(ArgTs &&... Args) {
331 return Error(std::make_unique<ErrT>(std::forward<ArgTs>(Args)...));
include/llvm/Support/ErrorOr.h 74 ErrorOr(E ErrorCode,
75 typename std::enable_if<std::is_error_code_enum<E>::value ||
76 std::is_error_condition_enum<E>::value,
269 typename std::enable_if<std::is_error_code_enum<E>::value ||
270 std::is_error_condition_enum<E>::value,
272 operator==(const ErrorOr<T> &Err, E Code) {
lib/DebugInfo/DWARF/DWARFAcceleratorTable.cpp 49 return createStringError(errc::illegal_byte_sequence,
66 errc::illegal_byte_sequence,
383 return createStringError(errc::illegal_byte_sequence,
399 errc::illegal_byte_sequence,
442 return createStringError(errc::illegal_byte_sequence,
468 return createStringError(errc::illegal_byte_sequence,
504 return createStringError(errc::illegal_byte_sequence,
517 return createStringError(errc::invalid_argument,
603 return createStringError(errc::illegal_byte_sequence,
612 return createStringError(errc::invalid_argument, "Invalid abbreviation.");
619 return createStringError(errc::io_error,
lib/DebugInfo/DWARF/DWARFContext.cpp 1842 return createStringError(errc::invalid_argument,
lib/DebugInfo/DWARF/DWARFDebugAddr.cpp 30 return createStringError(errc::invalid_argument,
36 WarnCallback(createStringError(errc::invalid_argument,
49 return createStringError(errc::not_supported,
56 return createStringError(errc::invalid_argument,
66 return createStringError(errc::invalid_argument,
90 return createStringError(errc::not_supported, "version %" PRIu16
99 return createStringError(errc::invalid_argument,
106 return createStringError(errc::not_supported,
111 return createStringError(errc::invalid_argument,
119 return createStringError(errc::not_supported,
125 return createStringError(errc::invalid_argument,
163 return createStringError(errc::invalid_argument,
lib/DebugInfo/DWARF/DWARFDebugFrame.cpp 50 return createStringError(errc::illegal_byte_sequence,
65 return createStringError(errc::illegal_byte_sequence,
lib/DebugInfo/DWARF/DWARFDebugLine.cpp 201 errc::invalid_argument,
219 return createStringError(errc::invalid_argument,
244 errc::invalid_argument,
255 return createStringError(errc::invalid_argument,
262 return createStringError(errc::invalid_argument,
280 errc::invalid_argument,
290 return createStringError(errc::invalid_argument,
312 errc::invalid_argument,
338 return createStringError(errc::invalid_argument,
345 return createStringError(errc::not_supported,
381 errc::invalid_argument,
393 return createStringError(errc::invalid_argument,
515 return createStringError(errc::invalid_argument, "offset 0x%8.8" PRIx64
620 return createStringError(errc::invalid_argument,
687 return createStringError(errc::illegal_byte_sequence,
892 createStringError(errc::illegal_byte_sequence,
lib/DebugInfo/DWARF/DWARFDebugLoc.cpp 180 return createStringError(errc::illegal_byte_sequence,
lib/DebugInfo/DWARF/DWARFDebugRangeList.cpp 29 return createStringError(errc::invalid_argument,
34 return createStringError(errc::invalid_argument,
49 return createStringError(errc::invalid_argument,
lib/DebugInfo/DWARF/DWARFDebugRnglists.cpp 39 errc::invalid_argument,
46 return createStringError(errc::not_supported,
56 errc::invalid_argument,
67 return createStringError(errc::invalid_argument,
75 return createStringError(errc::invalid_argument,
84 return createStringError(errc::invalid_argument,
98 return createStringError(errc::invalid_argument,
105 return createStringError(errc::not_supported,
lib/DebugInfo/DWARF/DWARFListTable.cpp 23 return createStringError(errc::invalid_argument,
35 return createStringError(errc::invalid_argument,
44 return createStringError(errc::invalid_argument,
51 return createStringError(errc::invalid_argument,
63 return createStringError(errc::invalid_argument,
68 return createStringError(errc::not_supported,
73 return createStringError(errc::not_supported,
79 return createStringError(errc::invalid_argument,
lib/DebugInfo/DWARF/DWARFUnit.cpp 317 return createStringError(errc::invalid_argument, "Did not detect a valid"
453 return createStringError(errc::invalid_argument,
477 return createStringError(errc::invalid_argument,
571 return createStringError(errc::invalid_argument,
581 return createStringError(errc::invalid_argument,
584 return createStringError(errc::invalid_argument,
591 return createStringError(errc::invalid_argument, "No unit DIE");
596 return createStringError(errc::invalid_argument,
788 return createStringError(errc::invalid_argument, "length exceeds section size");
796 return createStringError(errc::invalid_argument, "section offset exceeds section size");
799 return createStringError(errc::invalid_argument, "32 bit contribution referenced from a 64 bit unit");
814 return createStringError(errc::invalid_argument, "section offset exceeds section size");
818 return createStringError(errc::invalid_argument, "invalid length");
836 return createStringError(errc::invalid_argument, "insufficient space for 64 bit header prefix");
845 return createStringError(errc::invalid_argument, "insufficient space for 32 bit header prefix");
lib/LTO/Caching.cpp 66 if (EC != errc::no_such_file_or_directory && EC != errc::permission_denied)
66 if (EC != errc::no_such_file_or_directory && EC != errc::permission_denied)
111 if (EC != errc::permission_denied)
lib/Object/ArchiveWriter.cpp 92 return errorCodeToError(make_error_code(errc::is_a_directory));
lib/ProfileData/Coverage/CoverageMapping.cpp 171 return errorCodeToError(errc::argument_out_of_domain);
175 return errorCodeToError(errc::argument_out_of_domain);
lib/Support/CachePruning.cpp 174 if (EC == errc::no_such_file_or_directory) {
lib/Support/DataExtractor.cpp 20 *E = createStringError(errc::illegal_byte_sequence,
188 *Err = createStringError(errc::illegal_byte_sequence, error);
lib/Support/FileOutputBuffer.cpp 188 return errorCodeToError(errc::is_a_directory);
lib/Support/GlobPattern.cpp 50 errc::invalid_argument);
83 errc::invalid_argument);
lib/Support/LockFileManager.cpp 226 if (EC != errc::file_exists) {
319 errc::no_such_file_or_directory) {
lib/Support/MemoryBuffer.cpp 129 return make_error_code(errc::not_enough_memory);
387 return make_error_code(errc::invalid_argument);
460 return make_error_code(errc::not_enough_memory);
lib/Support/Path.cpp 188 if (EC == errc::file_exists || EC == errc::permission_denied)
188 if (EC == errc::file_exists || EC == errc::permission_denied)
198 if (EC == errc::no_such_file_or_directory)
208 if (EC == errc::file_exists)
924 if (EC != errc::no_such_file_or_directory)
1239 std::error_code EC(errc::operation_not_permitted);
lib/Support/Unix/Path.inc 388 return make_error_code(errc::operation_not_permitted);
553 return errc::permission_denied;
555 return errc::permission_denied;
655 if (EC == errc::no_such_file_or_directory)
lib/Support/Unix/Program.inc 93 return errc::no_such_file_or_directory;
455 return make_error_code(errc::io_error);
lib/Support/VirtualFileSystem.cpp 138 return errc::operation_not_permitted;
142 return errc::operation_not_permitted;
404 if (Status || Status.getError() != llvm::errc::no_such_file_or_directory)
407 return make_error_code(llvm::errc::no_such_file_or_directory);
415 if (Result || Result.getError() != llvm::errc::no_such_file_or_directory)
418 return make_error_code(llvm::errc::no_such_file_or_directory);
439 return errc::no_such_file_or_directory;
448 return errc::no_such_file_or_directory;
468 if (EC && EC != errc::no_such_file_or_directory)
828 return errc::no_such_file_or_directory;
834 return errc::no_such_file_or_directory;
841 return errc::no_such_file_or_directory;
882 return make_error_code(llvm::errc::invalid_argument);
946 EC = make_error_code(llvm::errc::not_a_directory);
972 return errc::operation_not_permitted;
1055 return errc::no_such_file_or_directory;
1081 if (shouldUseExternalFS() && EC == errc::no_such_file_or_directory)
1091 EC = std::error_code(static_cast<int>(errc::not_a_directory),
1642 return make_error_code(llvm::errc::invalid_argument);
1649 if (Result || Result.getError() != llvm::errc::no_such_file_or_directory)
1652 return make_error_code(llvm::errc::no_such_file_or_directory);
1677 return make_error_code(llvm::errc::no_such_file_or_directory);
1689 return make_error_code(llvm::errc::not_a_directory);
1695 if (Result || Result.getError() != llvm::errc::no_such_file_or_directory)
1698 return make_error_code(llvm::errc::no_such_file_or_directory);
1730 Result.getError() == llvm::errc::no_such_file_or_directory) {
1768 E.getError() == llvm::errc::no_such_file_or_directory) {
1776 return make_error_code(llvm::errc::invalid_argument);
1799 Result.getError() == llvm::errc::no_such_file_or_directory) {
1812 : llvm::errc::invalid_argument;
2057 if (EC && EC != errc::no_such_file_or_directory)
lib/Support/YAMLTraits.cpp 91 EC = make_error_code(errc::invalid_argument);
162 EC = make_error_code(errc::invalid_argument);
369 EC = make_error_code(errc::invalid_argument);
tools/clang/include/clang/Tooling/Transformer/MatchConsumer.h 40 return llvm::make_error<llvm::StringError>(llvm::errc::invalid_argument,
tools/clang/lib/Frontend/CompilerInstance.cpp 739 Error = make_error_code(llvm::errc::operation_not_permitted);
767 EC == llvm::errc::no_such_file_or_directory) {
tools/clang/lib/Lex/HeaderSearch.cpp 330 if (EC != llvm::errc::no_such_file_or_directory &&
331 EC != llvm::errc::invalid_argument &&
332 EC != llvm::errc::is_a_directory && EC != llvm::errc::not_a_directory) {
332 EC != llvm::errc::is_a_directory && EC != llvm::errc::not_a_directory) {
tools/clang/lib/StaticAnalyzer/Core/HTMLDiagnostics.cpp 252 if (EC && EC != llvm::errc::file_exists) {
tools/clang/lib/Tooling/Refactoring/Rename/RenamingAction.cpp 99 llvm::errc::invalid_argument);
tools/clang/lib/Tooling/Transformer/RangeSelector.cpp 34 return llvm::make_error<StringError>(llvm::errc::invalid_argument, Message);
tools/clang/lib/Tooling/Transformer/Stencil.cpp 39 return llvm::make_error<llvm::StringError>(llvm::errc::invalid_argument,
170 errc::invalid_argument, "Id not bound or not Expr: " + Data.Id);
185 errc::invalid_argument,
204 return llvm::make_error<StringError>(errc::invalid_argument,
214 errc::invalid_argument,
tools/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp 660 return createStringError(errc::invalid_argument,
844 errc::invalid_argument,
849 reportError(createStringError(errc::invalid_argument,
857 errc::invalid_argument,
863 errc::invalid_argument,
898 reportError(createStringError(errc::invalid_argument, Msg.str()));
914 reportError(createStringError(errc::invalid_argument,
tools/clang/tools/clang-offload-wrapper/ClangOffloadWrapper.cpp 330 errc::invalid_argument, "'" + Target + "': unsupported target triple"));
tools/clang/tools/extra/clang-include-fixer/YamlSymbolIndex.cpp 46 return llvm::make_error_code(llvm::errc::no_such_file_or_directory);
tools/clang/tools/extra/clangd/DraftStore.cpp 50 llvm::errc::invalid_argument);
77 llvm::errc::invalid_argument);
94 llvm::errc::invalid_argument);
tools/clang/tools/extra/clangd/SourceCode.cpp 159 llvm::errc::invalid_argument);
163 llvm::errc::invalid_argument);
170 llvm::errc::invalid_argument);
183 llvm::errc::invalid_argument);
tools/clang/tools/extra/clangd/TUScheduler.cpp 554 "invalid AST", llvm::errc::invalid_argument));
tools/clang/unittests/Tooling/RefactoringActionRulesTest.cpp 158 "Error", llvm::make_error_code(llvm::errc::invalid_argument));
tools/clang/unittests/Tooling/TransformerTest.cpp 577 return llvm::createStringError(llvm::errc::invalid_argument, "ERROR");
tools/dsymutil/BinaryHolder.cpp 204 return errorCodeToError(errc::no_such_file_or_directory);
tools/dsymutil/dsymutil.cpp 153 errc::invalid_argument);
166 errc::invalid_argument);
172 errc::invalid_argument);
178 errc::invalid_argument);
183 errc::invalid_argument);
tools/lld/lib/Core/Reader.cpp 49 return make_error_code(llvm::errc::executable_format_error);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryReader.cpp 86 return make_error_code(llvm::errc::executable_format_error);
101 return make_error_code(llvm::errc::executable_format_error);
103 return make_error_code(llvm::errc::executable_format_error);
tools/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp 490 _ec = make_error_code(llvm::errc::executable_format_error);
502 _ec = make_error_code(llvm::errc::executable_format_error);
531 _ec = make_error_code(llvm::errc::executable_format_error);
tools/lldb/include/lldb/Symbol/SymbolFile.h 248 return llvm::createStringError(make_error_code(llvm::errc::not_supported),
tools/lldb/source/Host/common/FileSystem.cpp 453 if (E.getError() == llvm::errc::no_such_file_or_directory) {
461 return make_error_code(llvm::errc::not_supported);
tools/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.h 87 : ErrorInfo(S, llvm::errc::not_supported) {}
89 PacketUnimplementedError() : ErrorInfo(llvm::errc::not_supported) {}
tools/lldb/unittests/Host/FileSystemTest.cpp 53 return make_error_code(llvm::errc::no_such_file_or_directory);
75 return make_error_code(llvm::errc::no_such_file_or_directory);
tools/llvm-ar/llvm-ar.cpp 966 if (EC && EC != errc::no_such_file_or_directory)
tools/llvm-cov/gcov.cpp 61 if (EC != errc::no_such_file_or_directory) {
tools/llvm-elfabi/ELFObjHandler.cpp 387 return createStringError(errc::not_supported, "Unsupported binary format");
tools/llvm-elfabi/llvm-elfabi.cpp 108 EC.addError(createStringError(errc::not_supported,
tools/llvm-ifs/llvm-ifs.cpp 241 return createStringError(errc::not_supported, "Invalid Platform.\n");
tools/llvm-objcopy/COFF/COFFObjcopy.cpp 145 createStringError(llvm::errc::invalid_argument,
209 return createStringError(llvm::errc::invalid_argument,
tools/llvm-objcopy/CopyConfig.cpp 121 errc::invalid_argument,
134 return createStringError(errc::invalid_argument,
162 errc::invalid_argument,
167 errc::invalid_argument,
171 return createStringError(errc::invalid_argument,
180 return createStringError(errc::invalid_argument,
245 return createStringError(errc::invalid_argument,
341 return createStringError(errc::invalid_argument,
352 return errc::invalid_argument;
397 return createStringError(errc::invalid_argument, "unknown argument '%s'",
404 return createStringError(errc::invalid_argument, "no input file specified");
407 return createStringError(errc::invalid_argument,
417 errc::invalid_argument,
421 return createStringError(errc::invalid_argument,
483 errc::invalid_argument,
491 errc::invalid_argument,
524 return createStringError(errc::invalid_argument,
528 return createStringError(errc::invalid_argument,
544 return createStringError(errc::invalid_argument,
562 errc::invalid_argument,
572 errc::invalid_argument,
578 errc::invalid_argument,
599 return createStringError(errc::invalid_argument,
603 errc::invalid_argument,
709 return createStringError(errc::invalid_argument,
736 errc::invalid_argument,
743 errc::invalid_argument,
747 return createStringError(errc::invalid_argument,
784 return createStringError(errc::invalid_argument, "unknown argument '%s'",
790 return createStringError(errc::invalid_argument, "no input file specified");
794 errc::invalid_argument,
800 return createStringError(errc::invalid_argument,
873 errc::invalid_argument,
876 errc::invalid_argument, "'%s' was already specified",
888 return createStringError(errc::invalid_argument,
tools/llvm-objcopy/ELF/ELFConfig.cpp 47 errc::invalid_argument,
55 errc::invalid_argument,
62 return createStringError(errc::invalid_argument, "bad symbol value: '%s'",
94 return createStringError(errc::invalid_argument,
114 return createStringError(errc::invalid_argument,
tools/llvm-objcopy/ELF/ELFObjcopy.cpp 187 createStringError(llvm::errc::invalid_argument,
tools/llvm-objcopy/ELF/Object.cpp 213 errc::invalid_argument,
223 errc::invalid_argument,
229 return createStringError(errc::invalid_argument,
237 return createStringError(errc::invalid_argument,
244 errc::invalid_argument,
249 return createStringError(errc::invalid_argument, "unknown record type: %u",
261 return createStringError(errc::invalid_argument,
266 return createStringError(errc::invalid_argument,
276 return createStringError(errc::invalid_argument,
285 return createStringError(errc::invalid_argument,
294 return createStringError(errc::invalid_argument, "incorrect checksum.");
680 llvm::errc::invalid_argument,
810 llvm::errc::invalid_argument,
820 return createStringError(llvm::errc::invalid_argument,
898 llvm::errc::invalid_argument,
933 llvm::errc::invalid_argument,
953 return createStringError(llvm::errc::invalid_argument,
969 return createStringError(llvm::errc::invalid_argument,
2026 return createStringError(llvm::errc::invalid_argument,
2250 errc::invalid_argument,
2267 return createStringError(errc::invalid_argument,
tools/llvm-objcopy/ELF/Object.h 964 Error E = createStringError(errc::invalid_argument, Fmt, Vals...);
tools/llvm-objcopy/MachO/MachOLayoutBuilder.cpp 277 return createStringError(llvm::errc::not_supported,
333 return createStringError(llvm::errc::not_supported,
tools/llvm-objcopy/MachO/MachOObjcopy.cpp 54 return createStringError(llvm::errc::invalid_argument,
tools/llvm-profdata/llvm-profdata.cpp 556 exitWithErrorCode(make_error_code(errc::no_such_file_or_directory),
tools/llvm-xray/xray-graph-diff.cpp 451 make_error_code(llvm::errc::invalid_argument));
tools/llvm-xray/xray-graph.cpp 500 make_error_code(llvm::errc::invalid_argument));
tools/llvm-xray/xray-stacks.cpp 747 make_error_code(errc::illegal_byte_sequence));
755 make_error_code(errc::result_out_of_range));
tools/sancov/sancov.cpp 238 return make_error_code(errc::illegal_byte_sequence);
245 return make_error_code(errc::illegal_byte_sequence);
261 return make_error_code(errc::illegal_byte_sequence);
unittests/Support/ErrorOrTest.cpp 19 ErrorOr<int> t2() { return errc::invalid_argument; }
69 ErrorOr<int> x(errc::no_such_file_or_directory);
93 operator std::error_code() { return errc::invalid_argument; }
99 ErrorOr<CastsToErrorCode> x5(errc::no_such_file_or_directory);
100 ErrorOr<CastsToErrorCode> x6 = errc::no_such_file_or_directory;
101 ErrorOr<CastsToErrorCode> x7 = {errc::no_such_file_or_directory};
102 ErrorOr<CastsToErrorCode> x8{errc::no_such_file_or_directory};
unittests/Support/ErrorTest.cpp 443 errorToErrorCode(make_error<StringError>("", errc::invalid_argument));
450 static const std::error_code EC = errc::invalid_argument;
716 auto Orig = ErrorOr<int>(errc::invalid_argument);
719 errorOrToExpected(ErrorOr<int>(errc::invalid_argument)));
unittests/Support/VirtualFileSystemTest.cpp 59 return make_error_code(llvm::errc::no_such_file_or_directory);
81 return make_error_code(llvm::errc::no_such_file_or_directory);
174 return llvm::errc::no_such_file_or_directory;
usr/include/c++/7.4.0/bits/move.h 72 constexpr _Tp&&
73 forward(typename std::remove_reference<_Tp>::type& __t) noexcept
83 constexpr _Tp&&
84 forward(typename std::remove_reference<_Tp>::type&& __t) noexcept
usr/include/c++/7.4.0/bits/unique_ptr.h 824 make_unique(_Args&&... __args)
825 { return unique_ptr<_Tp>(new _Tp(std::forward<_Args>(__args)...)); }
usr/include/c++/7.4.0/system_error 156 error_code(_ErrorCodeEnum __e) noexcept
usr/include/c++/7.4.0/type_traits 215 : public __is_void_helper<typename remove_cv<_Tp>::type>::type
581 : public __or_<is_lvalue_reference<_Tp>,
582 is_rvalue_reference<_Tp>>::type
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
601 : public __not_<__or_<is_function<_Tp>, is_reference<_Tp>,
602 is_void<_Tp>>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
638 : public __or_<is_object<_Tp>, is_reference<_Tp>>::type
762 typename add_rvalue_reference<_Tp>::type declval() noexcept;
1538 typedef decltype(__test<_From, _To>(0)) type;
1545 : public __is_convertible_helper<_From, _To>::type
1554 { typedef _Tp type; };
1563 { typedef _Tp type; };
1574 remove_const<typename remove_volatile<_Tp>::type>::type type;
1629 { typedef _Tp type; };
1659 { typedef _Tp&& type; };
1664 : public __add_rvalue_reference_helper<_Tp>
utils/unittest/googletest/include/gtest/gtest-printers.h 140 static void PrintValue(const T& value, ::std::ostream* os) {
205 ::std::basic_ostream<Char, CharTraits>& os, const T& x) {
206 TypeWithoutFormatter<T,
207 (internal::IsAProtocolMessage<T>::value ? kProtobuf :
208 internal::ImplicitlyConvertible<const T&, internal::BiggestInt>::value ?
223 void DefaultPrintNonContainerTo(const T& value, ::std::ostream* os) {
276 static ::std::string Format(const ToPrint& value) {
351 const T1& value, const T2& /* other_operand */) {
351 const T1& value, const T2& /* other_operand */) {
352 return FormatForComparison<T1, T2>::Format(value);
352 return FormatForComparison<T1, T2>::Format(value);
366 void UniversalPrint(const T& value, ::std::ostream* os);
373 const C& container, ::std::ostream* os) {
439 const T& value, ::std::ostream* os) {
455 void PrintTo(const T& value, ::std::ostream* os) {
478 DefaultPrintTo(IsContainerTest<T>(0), is_pointer<T>(), value, os);
699 static void Print(const T& value, ::std::ostream* os) {
784 static void Print(const T& value, ::std::ostream* os) {
856 typedef T T1;
983 internal::UniversalTersePrinter<T>::Print(value, &ss);
utils/unittest/googletest/include/gtest/gtest.h 1377 const T1& lhs, const T2& rhs) {
1390 const T2& rhs) {
1420 const T2& rhs) {
utils/unittest/googletest/include/gtest/internal/custom/raw-ostream.h 29 static const T& printable(const T& V) { return V; }
29 static const T& printable(const T& V) { return V; }
35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
35 auto printable(const T &V) -> decltype(StreamSwitch<T>::printable(V)) {
37 return StreamSwitch<T>::printable(V);
utils/unittest/googletest/include/gtest/internal/gtest-internal.h 94 ::std::string PrintToString(const T& value);