Re: [PATCH] diagnostics: Add function call parens matching to c_parser.

2020-06-03 Thread Joseph Myers
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 p

Re: [PATCH] diagnostics: Add function call parens matching to c_parser.

2020-05-31 Thread Mark Wielaard
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 m

[PATCH] diagnostics: Add function call parens matching to c_parser.

2020-05-24 Thread Mark Wielaard
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_expre