| Issue |
172816
|
| Summary |
clang-tidy misc-include-cleaner bug
|
| Labels |
clang-tidy
|
| Assignees |
|
| Reporter |
thomedes-taxitronic
|
Only happens when the macro is named 'I'. If it's renamed to 'H' it's fine.
```sh
$ clang-tidy -checks='-*,misc-include-cleaner' /tmp/prova.c --
1 warning generated.
/tmp/prova.c:3:16: warning: no header providing "I" is directly included [misc-include-cleaner]
1 | #define I 42
2 |
3 | void f(void) { I; }
| ^
$ clang-tidy --version
Debian LLVM version 20.1.8
Optimized build.
```
[prova.c](https://github.com/user-attachments/files/24230466/prova.c)
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs