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

David Spickett via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 29 05:32:45 PDT 2025


================
@@ -347,7 +348,15 @@ int main(int argc, const char **argv) {
     }
   }
 
+  // if we add more % commands, there should be better architecture than this
+  const char *help_output = "%help\tlist clang-repl %commands\n"
+                            "%undo\tundo the previous input\n"
+                            "%quit\texit clang-repl\n";
----------------
DavidSpickett wrote:

You should add %lib here as well.

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


More information about the cfe-commits mailing list