[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:55:06 PDT 2023
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
xgupta marked an inline comment as done.
Closed by commit rG726199146a0b: [clang-rename] Exit gracefully when no input provided (authored by xgupta).
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.514094.patch
Type: text/x-patch
Size: 456 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230417/d74aae9f/attachment.bin>
More information about the cfe-commits
mailing list