[clang-tools-extra] [clang-tidy] Portability Avoid Unprototyped Functions Check (PR #161023)

via cfe-commits cfe-commits at lists.llvm.org
Sat Sep 27 15:34:23 PDT 2025


isuckatcs wrote:

> Now I wonder if we could make a flag for clang-tidy to force it to think as if all clang diagnostics are enabled

I'd also prefer this, as right now we have no way to suggest fixit hints for a type, because IIUC we have no access to the token location in a type specifier, while `-Wstrict-prototypes` can do that.

Another issue is emitting the warning on types for C23, becuase in the AST a source spelled `void(*)()` is resolved as `void(*)(void)` in the AST, so we lose that information as well.

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


More information about the cfe-commits mailing list