[clang] [Sema] Suggest missing format attributes (PR #166738)

via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 6 06:07:20 PST 2025


Sirraide wrote:

> We probably want to only emit this diagnostic (or perform the check at all really) if we’re in `-std=gnuXY`/`-std=gnu++XY` mode.

Also, in non-GNU C23/C++11 mode, we can just suggest `[[gnu::format]]` instead

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


More information about the cfe-commits mailing list