mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
clang-tidy: Fix all remaining misc-include-cleaner violations
- Remove unused includes - Add common false positive headers to misc-include-cleaner.IgnoreHeaders - Add IWYU pragma keep for uncommon false positive headers
This commit is contained in:
21
.clang-tidy
21
.clang-tidy
@@ -6,6 +6,27 @@ Checks: '
|
||||
readability-duplicate-include,
|
||||
bugprone-argument-comment
|
||||
'
|
||||
CheckOptions:
|
||||
misc-include-cleaner.MissingIncludes: 'false'
|
||||
# These all lead to common false positives by clang-tidy where it tries to
|
||||
# remove these includes even though they're required in some situations (many
|
||||
# of them related to musl).
|
||||
misc-include-cleaner.IgnoreHeaders: '
|
||||
endian\.h;
|
||||
getopt\.h;
|
||||
sys/stat\.h;
|
||||
sys/statvfs\.h;
|
||||
sys/syscall\.h;
|
||||
sys/timex\.h;
|
||||
sys/uio\.h;
|
||||
netinet/in\.h;
|
||||
net/if\.h;
|
||||
net/if_arp\.h;
|
||||
runtime-scope\.h;
|
||||
varlink-io\.systemd\..*;
|
||||
varlink-idl-common\.h;
|
||||
unistd\.h
|
||||
'
|
||||
WarningsAsErrors: '*'
|
||||
HeaderFileExtensions:
|
||||
- h
|
||||
|
||||
Reference in New Issue
Block a user