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
__coroutine/trivial_awaitables.h
__debug
__debug_utils/randomize_range.h
- __errc
__exception/exception.h
__exception/exception_ptr.h
__exception/nested_exception.h
__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
#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>
#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
#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>
#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
#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>
#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>
#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>
#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>
#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>
#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>
#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>
#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>
#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>
#include <__charconv/traits.h>
#include <__config>
#include <__debug>
-#include <__errc>
+#include <__system_error/errc.h>
#include <cmath> // for log2f
#include <cstdint>
#include <limits>
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
export functional.__functional.unary_function
}
module system_error { private header "__system_error/system_error.h" }
+
}
}
module thread {
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@
#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>
#include <__assert>
#include <__config>
#include <array>
+#include <cerrno>
#include <chrono>
#include <climits>
#include <cstdarg>
#include <__charconv/to_chars_result.h>
#include <__config>
#include <__debug>
-#include <__errc>
+#include <__system_error/errc.h>
#include <cstdint>
#include <cstring>
#include <type_traits>
#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'}}
#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'}}
// 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.
ext/hash_set new
ext/hash_set string
ext/hash_set type_traits
-filesystem cerrno
filesystem compare
filesystem concepts
filesystem cstddef
ext/hash_set new
ext/hash_set string
ext/hash_set type_traits
-filesystem cerrno
filesystem compare
filesystem concepts
filesystem cstddef
ext/hash_set new
ext/hash_set string
ext/hash_set type_traits
-filesystem cerrno
filesystem compare
filesystem concepts
filesystem cstddef
ext/hash_set new
ext/hash_set string
ext/hash_set type_traits
-filesystem cerrno
filesystem compare
filesystem concepts
filesystem cstddef
ext/hash_set new
ext/hash_set string
ext/hash_set type_traits
-filesystem cerrno
filesystem compare
filesystem concepts
filesystem cstddef
ext/hash_set limits
ext/hash_set new
ext/hash_set string
-filesystem cerrno
filesystem compare
filesystem cstddef
filesystem cstdint
// enum errc {...}
+#include <cerrno>
#include <system_error>
#include "test_macros.h"
// void unlock();
-#include <shared_mutex>
#include <cassert>
#include <cerrno>
+#include <shared_mutex>
#include <system_error>
#include "test_macros.h"
#define SUPPORT_CHARCONV_TEST_HELPERS_H
#include <algorithm>
-#include <charconv>
#include <cassert>
+#include <cerrno>
+#include <charconv>
#include <cstddef>
#include <limits>
#include <numeric>
#endif
#include <cassert>
+#include <cerrno>
#include <chrono>
#include <cstdint>
#include <cstdio> // for printf
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
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