[libc++] Move __errc to __system_error/errc.h
This file was added before we started granularizing the headers, but is essentially just a granularized header. This moves the header to the correct place. Reviewed By: #libc, EricWF Spies: libcxx-commits, arichardson, mikhail.ramalho Differential Revision: https://reviews.llvm.org/D146395
This commit is contained in:
parent
19d969e340
commit
eb65912e41
@ -302,7 +302,6 @@ set(files
|
||||
__coroutine/trivial_awaitables.h
|
||||
__debug
|
||||
__debug_utils/randomize_range.h
|
||||
__errc
|
||||
__exception/exception.h
|
||||
__exception/exception_ptr.h
|
||||
__exception/nested_exception.h
|
||||
@ -589,6 +588,7 @@ set(files
|
||||
__support/xlocale/__nop_locale_mgmt.h
|
||||
__support/xlocale/__posix_l_fallback.h
|
||||
__support/xlocale/__strtonum_fallback.h
|
||||
__system_error/errc.h
|
||||
__system_error/error_category.h
|
||||
__system_error/error_code.h
|
||||
__system_error/error_condition.h
|
||||
|
||||
@ -14,8 +14,8 @@
|
||||
#include <__charconv/from_chars_result.h>
|
||||
#include <__charconv/traits.h>
|
||||
#include <__config>
|
||||
#include <__errc>
|
||||
#include <__memory/addressof.h>
|
||||
#include <__system_error/errc.h>
|
||||
#include <__type_traits/enable_if.h>
|
||||
#include <__type_traits/integral_constant.h>
|
||||
#include <__type_traits/is_integral.h>
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
#define _LIBCPP___CHARCONV_FROM_CHARS_RESULT_H
|
||||
|
||||
#include <__config>
|
||||
#include <__errc>
|
||||
#include <__system_error/errc.h>
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
|
||||
@ -17,7 +17,7 @@
|
||||
#include <__charconv/to_chars_result.h>
|
||||
#include <__charconv/traits.h>
|
||||
#include <__config>
|
||||
#include <__errc>
|
||||
#include <__system_error/errc.h>
|
||||
#include <__type_traits/enable_if.h>
|
||||
#include <__type_traits/integral_constant.h>
|
||||
#include <__type_traits/is_same.h>
|
||||
|
||||
@ -11,7 +11,7 @@
|
||||
#define _LIBCPP___CHARCONV_TO_CHARS_RESULT_H
|
||||
|
||||
#include <__config>
|
||||
#include <__errc>
|
||||
#include <__system_error/errc.h>
|
||||
|
||||
#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
|
||||
# pragma GCC system_header
|
||||
|
||||
@ -14,7 +14,6 @@
|
||||
#include <__chrono/time_point.h>
|
||||
#include <__compare/ordering.h>
|
||||
#include <__config>
|
||||
#include <__errc>
|
||||
#include <__filesystem/file_status.h>
|
||||
#include <__filesystem/file_time_type.h>
|
||||
#include <__filesystem/file_type.h>
|
||||
@ -22,6 +21,7 @@
|
||||
#include <__filesystem/operations.h>
|
||||
#include <__filesystem/path.h>
|
||||
#include <__filesystem/perms.h>
|
||||
#include <__system_error/errc.h>
|
||||
#include <__system_error/error_code.h>
|
||||
#include <__utility/move.h>
|
||||
#include <__utility/unreachable.h>
|
||||
|
||||
@ -22,7 +22,6 @@
|
||||
#include <__concepts/arithmetic.h>
|
||||
#include <__concepts/same_as.h>
|
||||
#include <__config>
|
||||
#include <__errc>
|
||||
#include <__format/concepts.h>
|
||||
#include <__format/format_parse_context.h>
|
||||
#include <__format/formatter.h>
|
||||
@ -30,6 +29,7 @@
|
||||
#include <__format/formatter_output.h>
|
||||
#include <__format/parser_std_format_spec.h>
|
||||
#include <__memory/allocator.h>
|
||||
#include <__system_error/errc.h>
|
||||
#include <__type_traits/conditional.h>
|
||||
#include <__utility/move.h>
|
||||
#include <__utility/unreachable.h>
|
||||
|
||||
@ -16,11 +16,11 @@
|
||||
#include <__concepts/arithmetic.h>
|
||||
#include <__concepts/same_as.h>
|
||||
#include <__config>
|
||||
#include <__errc>
|
||||
#include <__format/concepts.h>
|
||||
#include <__format/format_error.h>
|
||||
#include <__format/formatter_output.h>
|
||||
#include <__format/parser_std_format_spec.h>
|
||||
#include <__system_error/errc.h>
|
||||
#include <__type_traits/make_unsigned.h>
|
||||
#include <__utility/unreachable.h>
|
||||
#include <array>
|
||||
|
||||
@ -19,7 +19,6 @@
|
||||
#include <__chrono/statically_widen.h>
|
||||
#include <__concepts/same_as.h>
|
||||
#include <__config>
|
||||
#include <__errc>
|
||||
#include <__format/buffer.h>
|
||||
#include <__format/concepts.h>
|
||||
#include <__format/escaped_output_table.h>
|
||||
@ -29,6 +28,7 @@
|
||||
#include <__iterator/back_insert_iterator.h>
|
||||
#include <__iterator/concepts.h>
|
||||
#include <__iterator/readable_traits.h> // iter_value_t
|
||||
#include <__system_error/errc.h>
|
||||
#include <__type_traits/make_unsigned.h>
|
||||
#include <__utility/move.h>
|
||||
#include <__utility/unreachable.h>
|
||||
|
||||
@ -12,9 +12,9 @@
|
||||
|
||||
#include <__compare/ordering.h>
|
||||
#include <__config>
|
||||
#include <__errc>
|
||||
#include <__functional/hash.h>
|
||||
#include <__functional/unary_function.h>
|
||||
#include <__system_error/errc.h>
|
||||
#include <__system_error/error_category.h>
|
||||
#include <__system_error/error_condition.h>
|
||||
#include <cstddef>
|
||||
|
||||
@ -12,8 +12,8 @@
|
||||
|
||||
#include <__compare/ordering.h>
|
||||
#include <__config>
|
||||
#include <__errc>
|
||||
#include <__functional/unary_function.h>
|
||||
#include <__system_error/errc.h>
|
||||
#include <__system_error/error_category.h>
|
||||
#include <cstddef>
|
||||
#include <string>
|
||||
|
||||
@ -80,7 +80,7 @@ namespace std {
|
||||
#include <__charconv/traits.h>
|
||||
#include <__config>
|
||||
#include <__debug>
|
||||
#include <__errc>
|
||||
#include <__system_error/errc.h>
|
||||
#include <cmath> // for log2f
|
||||
#include <cstdint>
|
||||
#include <limits>
|
||||
|
||||
@ -1437,7 +1437,8 @@ module std [system] {
|
||||
export __errc
|
||||
export *
|
||||
module __system_error {
|
||||
module error_category { private header "__system_error/error_category.h" }
|
||||
module errc { private header "__system_error/errc.h" }
|
||||
module error_category { private header "__system_error/error_category.h" }
|
||||
module error_code {
|
||||
private header "__system_error/error_code.h"
|
||||
export functional.__functional.hash
|
||||
@ -1449,6 +1450,7 @@ module std [system] {
|
||||
export functional.__functional.unary_function
|
||||
}
|
||||
module system_error { private header "__system_error/system_error.h" }
|
||||
|
||||
}
|
||||
}
|
||||
module thread {
|
||||
@ -1715,7 +1717,6 @@ module std [system] {
|
||||
module __availability { private header "__availability" export * }
|
||||
module __bit_reference { private header "__bit_reference" export * }
|
||||
module __debug { header "__debug" export * }
|
||||
module __errc { private header "__errc" export * }
|
||||
module __hash_table { header "__hash_table" export * }
|
||||
module __locale {
|
||||
@requires_LIBCXX_ENABLE_LOCALIZATION@
|
||||
|
||||
@ -146,6 +146,7 @@ template <> struct hash<std::error_condition>;
|
||||
|
||||
#include <__assert> // all public C++ headers provide the assertion handler
|
||||
#include <__config>
|
||||
#include <__system_error/errc.h>
|
||||
#include <__system_error/error_category.h>
|
||||
#include <__system_error/error_code.h>
|
||||
#include <__system_error/error_condition.h>
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
#include <__assert>
|
||||
#include <__config>
|
||||
#include <array>
|
||||
#include <cerrno>
|
||||
#include <chrono>
|
||||
#include <climits>
|
||||
#include <cstdarg>
|
||||
|
||||
@ -48,7 +48,7 @@
|
||||
#include <__charconv/to_chars_result.h>
|
||||
#include <__config>
|
||||
#include <__debug>
|
||||
#include <__errc>
|
||||
#include <__system_error/errc.h>
|
||||
#include <cstdint>
|
||||
#include <cstring>
|
||||
#include <type_traits>
|
||||
|
||||
@ -334,7 +334,6 @@ END-SCRIPT
|
||||
#include <__coroutine/noop_coroutine_handle.h> // expected-error@*:* {{use of private header from outside its module: '__coroutine/noop_coroutine_handle.h'}}
|
||||
#include <__coroutine/trivial_awaitables.h> // expected-error@*:* {{use of private header from outside its module: '__coroutine/trivial_awaitables.h'}}
|
||||
#include <__debug_utils/randomize_range.h> // expected-error@*:* {{use of private header from outside its module: '__debug_utils/randomize_range.h'}}
|
||||
#include <__errc> // expected-error@*:* {{use of private header from outside its module: '__errc'}}
|
||||
#include <__exception/exception.h> // expected-error@*:* {{use of private header from outside its module: '__exception/exception.h'}}
|
||||
#include <__exception/exception_ptr.h> // expected-error@*:* {{use of private header from outside its module: '__exception/exception_ptr.h'}}
|
||||
#include <__exception/nested_exception.h> // expected-error@*:* {{use of private header from outside its module: '__exception/nested_exception.h'}}
|
||||
@ -604,6 +603,7 @@ END-SCRIPT
|
||||
#include <__string/char_traits.h> // expected-error@*:* {{use of private header from outside its module: '__string/char_traits.h'}}
|
||||
#include <__string/constexpr_c_functions.h> // expected-error@*:* {{use of private header from outside its module: '__string/constexpr_c_functions.h'}}
|
||||
#include <__string/extern_template_lists.h> // expected-error@*:* {{use of private header from outside its module: '__string/extern_template_lists.h'}}
|
||||
#include <__system_error/errc.h> // expected-error@*:* {{use of private header from outside its module: '__system_error/errc.h'}}
|
||||
#include <__system_error/error_category.h> // expected-error@*:* {{use of private header from outside its module: '__system_error/error_category.h'}}
|
||||
#include <__system_error/error_code.h> // expected-error@*:* {{use of private header from outside its module: '__system_error/error_code.h'}}
|
||||
#include <__system_error/error_condition.h> // expected-error@*:* {{use of private header from outside its module: '__system_error/error_condition.h'}}
|
||||
|
||||
@ -27,9 +27,6 @@
|
||||
// This test uses --trace-includes, which is not supported by GCC.
|
||||
// UNSUPPORTED: gcc
|
||||
|
||||
// This test doesn't work on AIX, but it should. Needs investigation.
|
||||
// XFAIL: buildhost=aix
|
||||
|
||||
// This test is not supported when we remove the transitive includes provided for backwards
|
||||
// compatibility. When we bulk-remove them, we'll adjust the includes that are expected by
|
||||
// this test instead.
|
||||
|
||||
@ -299,7 +299,6 @@ ext/hash_set limits
|
||||
ext/hash_set new
|
||||
ext/hash_set string
|
||||
ext/hash_set type_traits
|
||||
filesystem cerrno
|
||||
filesystem compare
|
||||
filesystem concepts
|
||||
filesystem cstddef
|
||||
|
||||
|
@ -299,7 +299,6 @@ ext/hash_set limits
|
||||
ext/hash_set new
|
||||
ext/hash_set string
|
||||
ext/hash_set type_traits
|
||||
filesystem cerrno
|
||||
filesystem compare
|
||||
filesystem concepts
|
||||
filesystem cstddef
|
||||
|
||||
|
@ -301,7 +301,6 @@ ext/hash_set limits
|
||||
ext/hash_set new
|
||||
ext/hash_set string
|
||||
ext/hash_set type_traits
|
||||
filesystem cerrno
|
||||
filesystem compare
|
||||
filesystem concepts
|
||||
filesystem cstddef
|
||||
|
||||
|
@ -301,7 +301,6 @@ ext/hash_set limits
|
||||
ext/hash_set new
|
||||
ext/hash_set string
|
||||
ext/hash_set type_traits
|
||||
filesystem cerrno
|
||||
filesystem compare
|
||||
filesystem concepts
|
||||
filesystem cstddef
|
||||
|
||||
|
@ -308,7 +308,6 @@ ext/hash_set limits
|
||||
ext/hash_set new
|
||||
ext/hash_set string
|
||||
ext/hash_set type_traits
|
||||
filesystem cerrno
|
||||
filesystem compare
|
||||
filesystem concepts
|
||||
filesystem cstddef
|
||||
|
||||
|
@ -201,7 +201,6 @@ ext/hash_set initializer_list
|
||||
ext/hash_set limits
|
||||
ext/hash_set new
|
||||
ext/hash_set string
|
||||
filesystem cerrno
|
||||
filesystem compare
|
||||
filesystem cstddef
|
||||
filesystem cstdint
|
||||
|
||||
|
@ -10,6 +10,7 @@
|
||||
|
||||
// enum errc {...}
|
||||
|
||||
#include <cerrno>
|
||||
#include <system_error>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
@ -15,9 +15,9 @@
|
||||
|
||||
// void unlock();
|
||||
|
||||
#include <shared_mutex>
|
||||
#include <cassert>
|
||||
#include <cerrno>
|
||||
#include <shared_mutex>
|
||||
#include <system_error>
|
||||
|
||||
#include "test_macros.h"
|
||||
|
||||
@ -10,8 +10,9 @@
|
||||
#define SUPPORT_CHARCONV_TEST_HELPERS_H
|
||||
|
||||
#include <algorithm>
|
||||
#include <charconv>
|
||||
#include <cassert>
|
||||
#include <cerrno>
|
||||
#include <charconv>
|
||||
#include <cstddef>
|
||||
#include <limits>
|
||||
#include <numeric>
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
#endif
|
||||
|
||||
#include <cassert>
|
||||
#include <cerrno>
|
||||
#include <chrono>
|
||||
#include <cstdint>
|
||||
#include <cstdio> // for printf
|
||||
|
||||
@ -308,7 +308,6 @@ libcxx/include/cuchar
|
||||
libcxx/include/__debug
|
||||
libcxx/include/__debug_utils/randomize_range.h
|
||||
libcxx/include/deque
|
||||
libcxx/include/__errc
|
||||
libcxx/include/errno.h
|
||||
libcxx/include/execution
|
||||
libcxx/include/expected
|
||||
@ -611,6 +610,7 @@ libcxx/include/__support/newlib/xlocale.h
|
||||
libcxx/include/__support/solaris/xlocale.h
|
||||
libcxx/include/__support/win32/locale_win32.h
|
||||
libcxx/include/__support/xlocale/__nop_locale_mgmt.h
|
||||
libcxx/include/__system_error/errc.h
|
||||
libcxx/include/__system_error/error_category.h
|
||||
libcxx/include/__system_error/error_code.h
|
||||
libcxx/include/__system_error/error_condition.h
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user