Markus Böck
97ea0aba15
[TableGen] Do not exit in template argument check ( #121636 )
...
The signature of `CheckTemplateArgValues` implements error handling via
the `bool` return type, yet always returned false. The single possible
error case instead used `PrintFatalError,` which exits the program
afterward.
This behavior is undesirable: It prevents any further errors from being
printed and makes TableGen less usable as a library as it crashes the
entire process (e.g. `tblgen-lsp-server`).
This PR therefore fixes the issue by using `Error` instead and returning
true if an error occurred. All callers already perform proper error
handling.
As `llvm-tblgen` exits on error, a test was also added to the LSP to
ensure it exits normally despite the error.
2025-01-06 21:06:17 +01:00
..
2024-10-08 13:16:06 +01:00
2025-01-05 01:10:25 +01:00
2024-10-29 12:26:33 -07:00
2024-04-24 09:19:18 +02:00
2020-05-28 09:36:24 +00:00
2018-11-29 18:20:08 +00:00
2024-10-03 18:18:10 -07:00
2020-10-28 12:27:53 -04:00
2024-11-04 16:10:50 +00:00
2022-06-30 10:37:58 -07:00
2021-06-23 13:27:37 +07:00
2024-10-04 13:21:50 -07:00
2020-09-12 16:26:32 -04:00
2021-03-17 09:28:50 +00:00
2020-09-12 16:26:32 -04:00
2021-01-14 10:20:35 -05:00
2024-06-25 16:42:29 -05:00
2014-09-16 17:14:13 +00:00
2020-12-03 10:19:11 -05:00
2022-09-19 14:22:43 +08:00
2019-01-25 10:25:25 +00:00
2024-03-20 13:32:38 -05:00
2022-09-27 23:48:16 -07:00
2022-09-27 23:48:16 -07:00
2022-09-27 23:48:16 -07:00
2018-11-28 11:43:49 +00:00
2013-11-10 14:25:44 +00:00
2024-01-11 15:28:12 +08:00
2024-12-04 09:19:13 +00:00
2024-08-01 01:19:14 +08:00
2024-04-16 20:34:20 -04:00
2023-05-24 12:44:14 +08:00
2024-09-19 12:42:46 -07:00
2024-09-19 12:42:46 -07:00
2024-08-19 21:05:39 +05:30
2019-11-20 18:24:10 -08:00
2019-11-20 18:24:10 -08:00
2016-12-01 19:38:50 +00:00
2021-09-23 23:07:35 -04:00
2020-10-19 09:22:20 -04:00
2018-03-14 11:00:57 +00:00
2022-06-23 11:11:47 +08:00
2018-03-06 13:48:39 +00:00
2020-11-05 09:07:21 -05:00
2019-05-22 21:28:20 +00:00
2019-05-22 21:28:20 +00:00
2019-05-22 21:28:20 +00:00
2019-05-22 21:28:20 +00:00
2019-05-22 21:28:20 +00:00
2020-09-12 16:26:32 -04:00
2020-09-12 16:26:32 -04:00
2011-10-06 13:39:59 +00:00
2014-05-09 08:18:33 +00:00
2024-07-11 10:54:31 -07:00
2024-06-13 11:52:22 +02:00
2024-05-04 20:08:26 -05:00
2024-05-04 20:08:26 -05:00
2024-04-01 17:19:46 +08:00
2024-05-04 20:08:26 -05:00
2024-02-19 13:14:22 +08:00
2023-03-14 13:00:38 -07:00
2007-01-17 07:59:14 +00:00
2013-11-10 14:25:44 +00:00
2024-12-17 20:34:35 -06:00
2020-12-28 12:17:24 -05:00
2024-10-01 09:08:47 -07:00
2024-09-19 05:21:00 -07:00
2024-09-04 15:04:10 -07:00
2024-12-03 13:33:15 -05:00
2024-09-07 05:13:54 -07:00
2024-09-05 14:52:30 -07:00
2024-09-25 12:01:17 -07:00
2019-03-12 09:28:19 +00:00
2024-10-29 12:26:33 -07:00
2024-10-01 11:17:00 +04:00
2021-03-04 14:08:19 +03:00
2023-05-17 10:48:52 +02:00
2024-01-24 17:07:20 +00:00
2024-01-24 17:07:20 +00:00
2024-12-09 13:21:46 +00:00
2018-06-04 14:26:05 +00:00
2020-09-12 16:26:32 -04:00
2011-10-06 13:39:59 +00:00
2024-09-24 12:24:17 -07:00
2024-09-24 12:24:17 -07:00
2019-03-05 17:16:07 +00:00
2022-12-09 15:03:18 +00:00
2024-10-25 13:06:02 -04:00
2024-04-01 18:32:55 +08:00
2022-10-26 09:16:32 -07:00
2023-03-07 15:04:09 -05:00
2024-12-13 19:55:11 +03:00
2019-03-26 10:49:09 +00:00
2018-03-21 17:12:53 +00:00
2018-03-05 14:01:38 +00:00
2013-11-10 14:26:08 +00:00
2013-11-10 14:26:08 +00:00
2018-03-05 15:21:04 +00:00
2024-10-01 11:17:00 +04:00
2018-06-21 13:35:44 +00:00
2020-11-05 09:07:21 -05:00
2024-05-20 06:18:49 -08:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2020-04-23 14:26:32 +09:00
2024-08-08 02:00:36 +03:00
2020-02-18 10:09:05 -08:00
2020-09-12 16:26:32 -04:00
2024-07-25 09:41:55 -04:00
2018-01-08 16:25:40 +00:00
2024-11-22 22:58:54 +08:00
2022-09-27 23:48:16 -07:00
2024-09-07 15:11:34 -07:00
2018-03-19 14:14:28 +00:00
2021-02-01 10:59:07 -05:00
2013-11-10 14:26:08 +00:00
2024-04-25 16:42:48 -04:00
2023-03-07 12:41:56 +00:00
2013-11-10 14:25:44 +00:00
2024-08-08 02:00:36 +03:00
2018-03-05 15:21:04 +00:00
2025-01-06 21:06:17 +01:00
2024-11-07 10:22:03 -08:00
2023-02-09 16:14:38 +08:00
2016-01-13 07:53:11 +00:00
2020-09-12 16:26:32 -04:00
2024-10-29 12:26:33 -07:00
2024-10-29 12:26:33 -07:00
2023-02-09 16:14:38 +08:00
2023-10-26 14:43:38 +02:00
2023-10-20 07:21:24 +02:00
2025-01-02 21:02:19 +08:00
2024-10-21 09:58:59 -07:00
2024-11-22 17:45:30 +00:00
2024-11-07 19:09:21 +08:00