public inbox for linux-sparse@vger.kernel.org
 help / color / mirror / Atom feed
* add variadic format checking
@ 2026-01-16 17:58 Ben Dooks
  2026-01-16 17:58 ` [PATCH v3 1/4] parse: initial parsing of __attribute__((format)) Ben Dooks
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ben Dooks @ 2026-01-16 17:58 UTC (permalink / raw)
  To: linux-sparse, sparse

Third version with a few minor fixes, the only issues seem to be
with the complexities of the linux-kernel which has some printk
fun locally defined.


This series (which was initially sent back in 2020) adds the
ability to deal with __attribute__((format) and checking the
arguments to formatted variadic functions.

I have been considering adding a -Wformat-linux to this as
the kernel now has a number of extra formatting options and
checking the type of these would be useful. An even nicer
extension would be some way of informing the compiler/sparse
of these at compile time (but would need to get agreement on
how to do this with the compilers too)



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-16 17:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-16 17:58 add variadic format checking Ben Dooks
2026-01-16 17:58 ` [PATCH v3 1/4] parse: initial parsing of __attribute__((format)) Ben Dooks
2026-01-16 17:58 ` [PATCH v3 2/4] add -Wformat Ben Dooks
2026-01-16 17:58 ` [PATCH v3 3/4] evaluate: check variadic argument types against formatting info Ben Dooks
2026-01-16 17:58 ` [PATCH v3 4/4] tests: add varargs printf format tests Ben Dooks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox