Re: Clarifying confusion of our variable placement rules caused by cleanup.h
From: H. Peter Anvin
Date: Tue Nov 18 2025 - 14:11:40 EST
On 2025-11-18 10:38, Linus Torvalds wrote:
>
> Now, we currently don't use __auto_type very much outside of macros
> (and there we often use "typeof(x)" instead for historical compiler
> reasons), but I suspect we probably should. There's a patch floating
> around that makes it more convenient with a
>
> #define auto __auto_type
>
> because the historical C 'auto' keyword has been so completely and
> utterly useless.
>
Indeed, and this matches C++ and C23.
The only thing about it was that it got to be fuzzy the best way to upstream it.
Do you want me to send you the patchset during the merge window?
-hpa