[clang-tools-extra] [clang-tidy] Add new check: `modernize-use-concise-preprocessor-directives` (PR #146830)
Carlos Galvez via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 4 14:02:42 PDT 2025
carlosgalvezp wrote:
+1 to moving to `readability`.
What's the behavior when you have:
```cpp
#if defined(foo) && defined(bar)
```
? I don't believe I saw a test for this use case.
As a user I would probably prefer to keep it as is instead of having one `ifdef` and one `if defined`. Perhaps this can be configured as it's a highly debatable/subjective topic.
https://github.com/llvm/llvm-project/pull/146830
More information about the cfe-commits
mailing list