Michael Spencer
ba13fa2a5d
[llvm][Support] Add and use errnoAsErrorCode ( #84423 )
...
LLVM is inconsistent about how it converts `errno` to `std::error_code`.
This can cause problems because values outside of `std::errc` compare
differently if one is system and one is generic on POSIX systems.
This is even more of a problem on Windows where use of the system
category is just wrong, as that is for Windows errors, which have a
completely different mapping than POSIX/generic errors. This patch fixes
one instance of this mistake in `JSONTransport.cpp`.
This patch adds `errnoAsErrorCode()` which makes it so people do not
need to think about this issue in the future. It also cleans up a lot of
usage of `errno` in LLVM and Clang.
2024-03-08 23:30:33 -08:00
..
2024-01-24 14:33:45 +01:00
2024-03-08 23:30:33 -08:00
2024-03-08 23:30:33 -08:00
2022-12-06 12:49:32 -08:00
2024-02-14 14:11:56 -08:00
2023-11-03 18:19:33 +00:00
2024-03-05 07:38:42 -05:00
2023-02-19 23:56:52 -08:00
2023-01-05 14:11:08 +01:00
2023-12-03 10:34:48 -08:00
2024-03-08 23:30:33 -08:00
2024-03-05 18:00:46 -08:00
2023-10-08 00:11:15 -07:00
2023-11-02 21:41:00 -07:00
2023-10-09 00:54:47 -07:00
2024-02-27 14:13:00 -05:00
2023-11-03 18:19:33 +00:00
2024-01-17 20:22:58 -08:00
2023-10-12 15:42:56 -04:00
2024-02-13 18:35:39 -08:00
2023-10-12 21:21:45 -07:00
2024-01-31 23:54:07 -08:00
2023-04-25 16:03:34 -04:00
2023-01-28 15:22:37 -08:00
2023-02-08 18:03:58 -05:00
2023-01-05 14:11:08 +01:00
2023-11-29 12:47:27 -08:00
2023-11-03 18:19:33 +00:00
2023-06-13 10:47:18 +01:00
2024-02-13 14:34:58 +00:00
2023-02-19 22:04:47 -08:00
2022-12-16 08:49:10 +00:00
2023-10-12 21:21:45 -07:00
2023-11-03 18:19:33 +00:00
2023-05-30 14:12:20 -07:00
2023-07-13 21:06:39 +01:00
2024-03-01 14:53:54 -05:00
2024-02-13 18:35:39 -08:00
2024-01-17 20:22:58 -08:00
2023-10-05 22:33:58 -04:00
2023-07-06 12:27:48 +02:00
2023-09-14 19:46:53 +03:00
2023-01-28 09:06:31 -08:00
2024-02-04 14:57:25 -08:00
2023-09-12 16:51:58 -07:00
2024-01-17 20:22:58 -08:00
2024-01-11 19:08:28 -05:00
2023-06-25 15:42:22 +01:00
2024-03-05 12:59:58 -06:00
2022-12-02 21:11:44 -08:00
2024-03-08 23:30:33 -08:00
2023-01-05 14:11:08 +01:00
2023-03-14 12:58:37 +01:00
2023-01-05 14:11:08 +01:00
2023-01-26 07:59:33 +01:00
2022-12-18 00:28:54 -08:00
2022-12-06 22:34:50 -08:00
2023-05-06 14:35:26 +02:00
2024-03-08 23:30:33 -08:00
2024-02-12 14:52:08 -08:00
2023-02-24 13:43:12 -08:00
2024-01-31 11:14:02 +01:00
2024-03-06 23:45:11 -05:00
2024-03-08 23:30:33 -08:00
2024-03-08 23:30:33 -08:00
2024-03-08 23:30:33 -08:00
2023-09-12 16:55:34 -04:00
2023-01-19 11:12:53 +01:00
2023-05-08 18:56:09 +02:00
2023-12-01 11:28:42 -08:00
2023-01-05 14:11:08 +01:00
2024-03-06 09:25:42 +08:00
2023-01-28 12:41:20 -08:00
2022-12-02 21:11:44 -08:00
2023-09-23 13:17:46 -07:00
2023-09-23 13:17:46 -07:00
2023-12-23 22:21:52 -08:00
2024-01-22 00:39:11 -08:00
2023-09-01 18:25:16 -07:00
2023-12-11 15:30:28 -08:00
2023-10-06 16:33:13 -05:00
2024-02-02 20:01:51 +00:00
2024-01-31 23:54:07 -08:00
2023-08-03 11:12:05 -07:00
2023-05-12 17:09:26 -07:00
2023-05-11 21:33:39 -07:00
2023-07-19 18:57:55 +00:00
2024-03-02 19:10:50 -08:00
2022-11-21 19:03:40 -08:00
2023-08-03 10:52:57 -07:00
2024-01-17 22:55:58 +01:00
2024-01-17 22:55:58 +01:00
2024-01-17 22:55:58 +01:00
2024-01-17 22:55:58 +01:00
2024-01-13 18:18:49 -08:00
2024-02-03 09:36:45 -08:00
2023-07-18 13:36:11 -07:00
2023-11-10 07:19:24 +07:00
2023-10-16 15:14:17 -05:00
2023-01-26 12:55:42 -06:00