vbvictor wrote: > In GCC -Wstrict-prototypes is not particularly descriptive in it's warnings
If you have `-Wstrict-prototypes` enabled in GCC, clang-tidy can show it's corresponding warning from with clang's message if you enable check `clang-diagnostic-strict-prototypes`. https://godbolt.org/z/e9cfsG4EM. But it only works if `-Wstrict-prototypes` is already enabled in `compile_commands.json` or other place. Now I wonder if we could make a flag for `clang-tidy` to force it to think as if all `clang` diagnostics are enabled, so then we could just write `--checks=clang-diagnostic-strict-prototypes` and have this check enabled regardless of `-Wstrict-prototypes` precense. https://github.com/llvm/llvm-project/pull/161023 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
