File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ struct ReplListCompleter {
185185 clang::Interpreter &MainInterp;
186186 ReplListCompleter (clang::IncrementalCompilerBuilder &CB,
187187 clang::Interpreter &Interp)
188- : CB(CB), MainInterp(Interp){};
188+ : CB(CB), MainInterp(Interp) {};
189189
190190 std::vector<llvm::LineEditor::Completion> operator ()(llvm::StringRef Buffer,
191191 size_t Pos) const ;
@@ -370,6 +370,8 @@ int main(int argc, const char **argv) {
370370 if (Input == R"( %undo)" ) {
371371 if (auto Err = Interp->Undo ())
372372 llvm::logAllUnhandledErrors (std::move (Err), llvm::errs (), " error: " );
373+ } else if (Input == R"( %help)" ) {
374+ printf (" clang-repl commands: { %%undo, %%quit }\n " );
373375 } else if (Input.rfind (" %lib " , 0 ) == 0 ) {
374376 if (auto Err = Interp->LoadDynamicLibrary (Input.data () + 5 ))
375377 llvm::logAllUnhandledErrors (std::move (Err), llvm::errs (), " error: " );
You can’t perform that action at this time.
0 commit comments