[libc++] Granularize system_error.

Reviewed By: #libc, philnik

Differential Revision: https://reviews.llvm.org/D147853
This commit is contained in:
Mark de Wever
2023-04-08 17:29:31 +02:00
parent bdf7fd8297
commit e8cfbfd05a
49 changed files with 660 additions and 420 deletions

View File

@@ -904,6 +904,7 @@ module std [system] {
private header "__format/format_context.h"
export optional
export locale
export __locale
}
module format_error { private header "__format/format_error.h" }
module format_functions {
@@ -1433,7 +1434,22 @@ module std [system] {
}
module system_error {
header "system_error"
export __errc
export *
module __system_error {
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 error_condition {
private header "__system_error/error_condition.h"
export functional.__functional.hash
export functional.__functional.unary_function
}
module system_error { private header "__system_error/system_error.h" }
}
}
module thread {
@requires_LIBCXX_ENABLE_THREADS@