Re: [PATCH] checkpatch: don't complain on _Static_assert and _Generic use
From: Rasmus Villemoes
Date: Wed Nov 29 2023 - 03:58:42 EST
On 27/11/2023 16.18, Przemek Kitszel wrote:
> Improve CamelCase recognition logic to avoid reporting on _Static_assert()
> and _Generic() use.
>
_Generic I understand, because that can reasonably be used in new macros.
But is there ever any reason for introducing new uses of _Static_assert
when we already have the static_assert() wrapper? Shouldn't people use
that instead of the raw keyword?
> Other C keywords, such as _Bool, are intentionally omitted, as those
> should be rather avoided in new source code.
... in exactly the same way that we have 'typedef _Bool bool;' and then
prefer people to spell it 'bool'.
Rasmus