Shivam Gupta
62eec1584d
[clang-rename] Exit gracefully when no input provided
clang-rename on a non existing file segfaults
Command to run -
$ clang-rename -offset=0 -new-name=plop asdasd
Error while processing llvm-project/asdasd.
clang-rename: llvm-project/llvm/include/llvm/Support/ErrorOr.h:237:
llvm::ErrorOr<T>::storage_type* llvm::ErrorOr<T>::getStorage()
[with T = const clang::FileEntry*; llvm::ErrorOr<T>::storage_type = const clang::FileEntry*]:
Assertion `!HasError && "Cannot get value when an error exists!"' failed.
[1] 827497 IOT instruction clang-rename -offset=0 -new-name=plop asdasd
This fixes https://github.com/llvm/llvm-project/issues/36471.
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D148439
2023-04-26 20:23:14 +05:30
..
2023-03-13 12:41:16 -05:00
2021-04-21 10:19:01 -04:00
2021-03-25 09:47:49 -04:00
2023-03-30 18:13:58 +01:00
2022-07-15 10:30:37 +02:00
2020-10-15 00:35:16 -04:00
2023-01-14 12:31:01 -08:00
2023-03-09 12:32:10 +01:00
2023-03-17 10:00:05 +01:00
2023-03-29 12:01:54 +00:00
2023-03-27 11:38:27 -05:00
2023-03-14 14:12:31 -07:00
2023-03-10 10:56:07 -06:00
2023-03-13 20:59:06 -04:00
2023-04-26 20:23:14 +05:30
2023-04-17 00:38:49 +09:00
2023-04-21 10:56:42 -07:00
2022-08-01 13:13:18 -04:00
2021-09-23 21:16:43 +05:30
2023-03-27 09:41:30 -07:00
2023-04-25 15:12:17 -07:00
2023-03-14 13:08:44 +01:00
2023-04-18 13:48:08 -07:00
2023-04-04 19:50:31 -05:00
2023-03-28 14:34:28 -07:00
2023-04-15 20:12:24 +02:00
2022-01-21 23:58:08 +00:00
2023-01-19 14:07:34 -08:00