Feature request: typeof_unqual keyword support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello!

C23 introduced a new typeof operator, typeof_unqual [1], same as
typeof, but removes qualifiers. gcc-14 [2] and clang (19?) also
introduced __typeof_unqual__ and __typeof_unqual alternate spelling,
available in all C modes.

A recent kernel patch [3] would like to introduce __typeof_unqual__ to
kernel sources. Since this keyword is not known to the sparse checker,
it breaks C=1 checking.

It would be nice if sparse supports this new keyword and its alternate
spellings.

[1] https://en.cppreference.com/w/c/language/typeof
[2] https://gcc.gnu.org/onlinedocs/gcc/Typeof.html
[3] https://lore.kernel.org/lkml/20240812115945.484051-2-ubizjak@xxxxxxxxx/

Thanks,
Uros.




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux