mirror of
https://github.com/morgan9e/systemd
synced 2026-04-13 16:04:28 +09:00
The previous commit fixes all remaining violations of the check for a very specific setup (Fedora Rawhide with as many dependencies as possible installed). The linter job in CI runs that specific setup so we enable the check in the clang-tidy config but do not yet enable the clang-tidy test suite in meson by default as it will very likely still fail in different setups than the one in CI.
37 lines
838 B
YAML
37 lines
838 B
YAML
# SPDX-License-Identifier: LGPL-2.1-or-later
|
|
---
|
|
Checks: '
|
|
-*,
|
|
misc-header-include-cycle,
|
|
readability-duplicate-include,
|
|
bugprone-argument-comment,
|
|
misc-include-cleaner
|
|
'
|
|
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
|
|
ImplementationFileExtensions:
|
|
- c
|
|
...
|