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

via cfe-commits cfe-commits at lists.llvm.org
Sun Sep 28 04:00:04 PDT 2025


isuckatcs wrote:

> You can probably also add the -Wstrict-prototypes to the ExtraArgs field in the .clang-tidy file.

This still leaves us with the other problem. `-Wstrict-prototypes` doesn't emit anything with `-std=c23`, but for portability reasons we should still require the user to write `void foo(void)` instead of `void foo()` regardless of the standard.

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


More information about the cfe-commits mailing list