[clang] [clang][sema] Add nonnull attribute to builtin format functions (PR #158626)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 15 10:51:28 PDT 2025


https://github.com/Sirraide commented:

I’m not sure it’s defined anywhere whether `nullptr` is a valid argument to `printf`, but if GCC diagnoses this then it should be fine for us to do so as well.

https://github.com/llvm/llvm-project/pull/158626


More information about the cfe-commits mailing list