[PATCH] D148439: [clang-rename] Exit gracefully when no input provided
Shivam Gupta via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Apr 16 21:54:08 PDT 2023
xgupta updated this revision to Diff 514093.
xgupta added a comment.
address comment
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148439/new/
https://reviews.llvm.org/D148439
Files:
clang/tools/clang-rename/ClangRename.cpp
Index: clang/tools/clang-rename/ClangRename.cpp
===================================================================
--- clang/tools/clang-rename/ClangRename.cpp
+++ clang/tools/clang-rename/ClangRename.cpp
@@ -126,6 +126,9 @@
SymbolOffsets.push_back(Info.Offset);
NewNames.push_back(Info.NewName);
}
+ } else {
+ errs() << "clang-rename: input must be provided.\n";
+ return 1;
}
// Check the arguments for correctness.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148439.514093.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230417/db94a645/attachment.bin>
More information about the cfe-commits
mailing list