[PATCH] diagnostics: Add function call parens matching to c_parser.
Joseph Myers
joseph@codesourcery.com
Wed Jun 3 23:13:53 GMT 2020
On Sun, 31 May 2020, Mark Wielaard wrote:
> On Sun, May 24, 2020 at 11:46:34PM +0200, Mark Wielaard wrote:
> > The C++ parser already tracks function call parens matching, but the C
> > parser doesn't. This adds the same functionality to the C parser and adds
> > a testcase showing the C++ and C parser matching function call parens
> > in an error message.
> >
> > gcc/c/ChangeLog:
> >
> > * c-parser.c (c_parser_postfix_expression_after_primary): Add
> > scope with matching_parens after CPP_OPEN_PAREN.
> >
> > gcc/testsuite/ChangeLog:
> >
> > * c-c++-common/missing-close-func-paren.c: New test.
>
> Ping.
OK.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list