Am 30.08.2021 um 11:11 schrieb matthew green:
> "Roland Illig" writes:
>> Module Name: src
>> Committed By:        rillig
>> Date:                Sun Aug 29 09:29:32 UTC 2021
>>
>> Modified Files:
>>      src/tests/usr.bin/xlint/lint1: msg_220.c msg_220.exp
>>      src/usr.bin/xlint/common: lint.h
>>      src/usr.bin/xlint/lint1: lex.c
>>
>> Log Message:
>> lint: allow 'fallthrough' as alternative spelling of FALLTHROUGH
>
> if you would like to see what GCC allows here, it's pretty involved.
> see external/gpl3/gcc/dist/libcpp/lex.c:fallthrough_comment_p().

Yep, I tried to read through these regular expressions myself but then
decided that I would focus on those few cases that we actually have in
the NetBSD tree.  I prefer not to use regular expressions in lint, to
keep it as simple as possible.

Roland

Reply via email to