[clang] [clang-repl] adding documentation and information for %commands (PR #150348)

Aaron Danen via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 31 08:43:18 PDT 2025


================
@@ -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());
----------------
aadanen wrote:

I was thinking it isnt an error but I am not familiar with whatever function is used for "log this thing that isn't an error". I will see if I can find it.

https://github.com/llvm/llvm-project/pull/150348


More information about the cfe-commits mailing list