[clang-tools-extra] [clang-tidy][readability] Ignore macros in function-size check (PR #199549)
Zeyi Xu via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 1 00:33:48 PDT 2026
https://github.com/zeyi2 commented:
Can we add a new test case that looks like this?
```cpp
#define BODY ;
void too_many_params(int a, int b, int c, int d, int e, int f) {
BODY
}
```
with config:
```
readability-function-size.IgnoreMacros: true
readability-function-size.ParameterThreshold: 5
```
https://github.com/llvm/llvm-project/pull/199549
More information about the cfe-commits
mailing list