isuckatcs wrote:

Oh, I missed that thread completely.

My concern about `-Wstrict-prototypes` is that it's in Clang only. I like to 
think of Clang-Tidy as a standalone linter, which can be used even though the 
code is being compiled with MSVC or GCC.

In GCC `-Wstrict-prototypes` is not particularly descriptive in it's warnings, 
as [this example](https://godbolt.org/z/oa3o6f8Eh) showcases it, and in MSVC 
I'm not aware of any similar warnings.

By having the check in Clang-Tidy, setups that use a different compiler, but 
also use Clang-Tidy as a linter could still take adavantage of the warning.

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