[clang] [Clang] enhance error recovery with RecoveryExpr for trailing commas in call arguments (PR #114684)
Mariya Podchishchaeva via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 20 02:27:17 PST 2024
================
@@ -2890,8 +2890,9 @@ Decl *Parser::ParseDeclarationAfterDeclaratorAndAttributes(
// ProduceConstructorSignatureHelp only on VarDecls.
ExpressionStarts = SetPreferredType;
}
-
- bool SawError = ParseExpressionList(Exprs, ExpressionStarts);
+ bool HasTrailingComma = false;
+ bool SawError =
+ ParseExpressionList(Exprs, ExpressionStarts, HasTrailingComma);
----------------
Fznamznon wrote:
This change doesn't seem necessary.
https://github.com/llvm/llvm-project/pull/114684
More information about the cfe-commits
mailing list