On 28/11/2024 12:18, Aaron Peter Bachmann via Gcc wrote:
Two suggestions for GCC beginners projects

I watched some of the 2024 Gnu Cauldron videos. The question of what could be a suitable project for a beginner came up. I have two suggestions:

1.    Add a warning when users use reserved or potentially reserved identifiers in their code. This could cover C and posit-identifiers. I think clang has that already. It is exceptionally simple, but some guidance might help here anyway. E. g. would it be acceptable to produce the classification function with [f]lex?


One thing to aim for here is to try to be consistent with clang - if you add a warning that is very similar to a warning in clang, use the same flag name.

It could also be worth adding options to the flag to support cross-language checks - in particular, it is often useful to avoid C++ reserved identifiers in C header code.



Reply via email to