Open
Description
Source C file:
#include <stdio.h>
void testFileType(FILE *fp) {
}
Using clang-tidy misc-include-cleaner:
$ clang-tidy mytest.c -checks=-*,misc-include-cleaner -- -std=c89
2 warnings generated.
mytest.c:1:1: warning: included header stdio.h is not used directly [misc-include-cleaner]
1 | #include <stdio.h>
| ^~~~~~~~~~~~~~~~~~
2 |
mytest.c:3:19: warning: no header providing "FILE" is directly included [misc-include-cleaner]
1 | #include <stdio.h>
2 |
3 | void testFileType(FILE *fp) {
| ^
Issue also reproducible in this link:
https://godbolt.org/z/3aWYjhjdb