================ @@ -836,8 +836,7 @@ StmtResult Parser::ParseCaseStatement(ParsedStmtContext StmtCtx, Diag(ExpectedLoc, diag::err_expected_after) << "'case'" << tok::colon - << FixItHint::CreateInsertion(ExpectedLoc, - tok::getTokenName(tok::colon)); + << FixItHint::CreateInsertion(ExpectedLoc, ":"); ---------------- Fznamznon wrote:
Maybe ```suggestion << FixItHint::CreateInsertion(ExpectedLoc, tok::getPunctuatorSpelling(tok::colon)); ``` https://github.com/llvm/llvm-project/pull/144068 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits