[clang-tools-extra] [clang-tidy] Enable `modernize-redundant-void-arg` in C23 (PR #182422)
Victor Chernyakin via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 19 21:16:52 PST 2026
================
@@ -209,6 +209,9 @@ Changes in existing checks
<clang-tidy/checks/modernize/pass-by-value>` check by adding `IgnoreMacros`
option to suppress warnings in macros.
+- Improved :doc:`modernize-redundant-void-arg
+ <clang-tidy/checks/modernize/redundant-void-arg>` check to work in C23.
----------------
localspook wrote:
I would imagine that user is compiling the C code with `-std=c11`, so this check wouldn't be enabled, and everything works as you would expect. Am I understanding the scenario right?
https://github.com/llvm/llvm-project/pull/182422
More information about the cfe-commits
mailing list