[clang] [clang-repl] Lay the foundation of pretty printing for C. (PR #89811)

Vassil Vassilev via cfe-commits cfe-commits at lists.llvm.org
Mon Feb 17 21:56:43 PST 2025


================
@@ -571,11 +571,8 @@ StmtResult Parser::ParseExprStatement(ParsedStmtContext StmtCtx) {
   }
 
   Token *CurTok = nullptr;
-  // If the semicolon is missing at the end of REPL input, consider if
-  // we want to do value printing. Note this is only enabled in C++ mode
-  // since part of the implementation requires C++ language features.
   // Note we shouldn't eat the token since the callback needs it.
-  if (Tok.is(tok::annot_repl_input_end) && Actions.getLangOpts().CPlusPlus)
+  if (Tok.is(tok::annot_repl_input_end))
----------------
vgvassilev wrote:

Probably. 

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


More information about the cfe-commits mailing list