Linux-Sparse Archive mirror
 help / color / mirror / Atom feed
From: Uros Bizjak <ubizjak@gmail.com>
To: Sparse Mailing-list <linux-sparse@vger.kernel.org>
Subject: Feature request: typeof_unqual keyword support
Date: Tue, 13 Aug 2024 08:33:45 +0200	[thread overview]
Message-ID: <CAFULd4a70uMBT0mby98ocEUy3OiA1U83a9zB+qHmq-eY7AkuTw@mail.gmail.com> (raw)

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@gmail.com/

Thanks,
Uros.

                 reply	other threads:[~2024-08-13  6:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAFULd4a70uMBT0mby98ocEUy3OiA1U83a9zB+qHmq-eY7AkuTw@mail.gmail.com \
    --to=ubizjak@gmail.com \
    --cc=linux-sparse@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).