[clang] [clang-repl] Lay the foundation of pretty printing for C. (PR #89811)
Anutosh Bhat via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 17 21:21:49 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))
----------------
anutosh491 wrote:
Hi,
Landed here as was studying a bit on `annot_repl_input_end`
Curious if this change also calls for a change in the docs ? @vgvassilev
I see the following

https://github.com/llvm/llvm-project/pull/89811
More information about the cfe-commits
mailing list