Re: [PATCH] Provide diagnostic hints for missing inttypes.h string constants.

2020-05-23 Thread Mark Wielaard
On Sat, May 23, 2020 at 05:01:21AM +0200, Mark Wielaard wrote: > Yes, that is actually better. And much easier to read. And the code > can still be shared between get_c_stdlib_header_for_string_macro_name > and get_stdlib_header_for_name. Changed in the attached patch. > > I also extended the testc

Re: [PATCH] Provide diagnostic hints for missing inttypes.h string constants.

2020-05-22 Thread Mark Wielaard
t covers both identifiers and string concatenation cases. The identifier hints also work for C++, but I haven't yet added the string token concatenation detection to the cp_parser. It looks like it can be done similar as done for the c_parser, but the parsers are different enough that it seem