Jan Svoboda
f0691bcdf9
[clang][lex] Fix non-portability diagnostics with absolute path ( #74782 )
...
The existing code incorrectly assumes that `Path` can be empty. It
can't, it always contains at least `<` or `"`. On Unix, this patch fixes
an incorrect diagnostics that instead of `"/Users/blah"` suggested
`"Userss/blah"`. In assert builds, this would outright crash.
This patch also fixes a bug on Windows that would prevent the diagnostic
being triggered due to separator mismatch.
rdar://91172342
2023-12-18 12:11:27 -08:00
..
2023-08-11 08:42:01 -04:00
2020-09-16 14:49:03 -04:00
2023-08-11 08:42:01 -04:00
2022-12-06 11:02:27 +08:00
2023-08-28 12:13:42 -04:00
2023-05-25 11:55:44 +01:00
2023-12-18 12:11:27 -08:00
2023-08-01 11:00:27 -07:00
2020-05-01 14:17:01 -04:00
2017-08-15 19:47:06 +00:00
2020-04-28 23:49:35 -07:00
2023-05-04 19:19:52 +02:00
2022-10-28 15:05:21 +02:00
2023-07-12 08:03:23 +02:00
2023-08-28 12:13:42 -04:00
2022-07-13 10:19:26 +02:00
2022-07-13 10:19:26 +02:00
2023-08-28 12:13:42 -04:00
2023-02-23 14:40:58 +08:00
2023-08-28 12:13:42 -04:00
2019-09-26 17:19:22 +00:00
2019-09-26 17:19:22 +00:00
2013-09-26 03:33:06 +00:00
2018-02-06 22:39:25 +00:00
2023-10-04 14:09:06 +09:00
2023-08-29 09:36:59 -04:00
2023-08-11 08:42:01 -04:00
2018-07-17 04:56:22 +00:00
2023-09-06 23:20:00 +02:00
2013-09-05 00:02:30 +00:00
2019-02-05 12:05:53 +00:00
2015-07-23 14:45:41 +00:00
2023-07-03 10:15:40 -04:00
2023-06-05 11:09:58 -04:00
2023-11-09 20:36:38 -05:00
2021-05-27 18:24:21 +02:00
2017-01-20 00:45:35 +00:00
2014-04-16 02:56:48 +00:00
2022-07-19 15:04:58 -04:00
2018-09-07 09:21:09 +00:00
2015-08-13 17:56:49 +00:00
2012-12-17 08:52:05 +00:00
2018-09-22 01:03:16 +00:00
2018-09-17 05:25:47 +00:00
2023-05-31 07:26:03 +02:00
2017-08-13 22:26:53 +00:00
2023-08-11 08:42:01 -04:00
2022-08-26 09:20:05 -04:00
2012-10-19 12:44:48 +00:00
2023-08-28 12:13:42 -04:00
2015-08-01 02:55:59 +00:00
2022-02-09 17:16:10 -05:00
2023-08-28 12:13:42 -04:00
2022-06-29 14:57:35 +02:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-05-04 19:19:52 +02:00
2023-10-23 14:29:00 +02:00
2022-02-09 17:16:10 -05:00
2012-03-08 21:59:28 +00:00
2023-05-31 07:26:03 +02:00
2012-03-06 03:21:47 +00:00
2013-03-11 18:01:42 +00:00
2023-08-10 13:57:40 -04:00
2023-11-06 14:56:25 -08:00
2023-02-22 10:16:02 +01:00
2023-08-10 13:57:40 -04:00
2023-08-28 12:13:42 -04:00