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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to