[PATCH] D116425: [clang-tidy] Improve modernize-redundant-void-arg to recognize macro uses
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jan 5 11:47:08 PST 2022
aaron.ballman added a comment.
Generally LGTM, just a testing request.
================
Comment at: clang-tools-extra/test/clang-tidy/checkers/modernize-redundant-void-arg.cpp:561
+#define return_t(T) T
+return_t(void) func(void);
+// CHECK-MESSAGES: :[[@LINE-1]]:21: warning: redundant void argument list in function declaration
----------------
Can you also add a test for:
```
void func(return_t(void));
```
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116425/new/
https://reviews.llvm.org/D116425
More information about the cfe-commits
mailing list