================
@@ -370,9 +378,24 @@ int main(int argc, const char **argv) {
if (Input == R"(%undo)") {
if (auto Err = Interp->Undo())
llvm::logAllUnhandledErrors(std::move(Err), llvm::errs(), "error: ");
+ } else if (Input == R"(%help)") {
+ auto Err =
+ llvm::make_error<llvm::StringError>(help_output,
std::error_code());
----------------
DavidSpickett wrote:
This may not be correct as this is not really an "error" as such. However, it
may not matter.
I will add a clang-repl maintainer to review and we can ask them about this.
https://github.com/llvm/llvm-project/pull/150348
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits