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:
@@ -1,7 +1,3 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
|
||||
#include <linux/audit.h>
|
||||
|
||||
#include "audit-type.h"
|
||||
|
||||
#include "audit_type-to-name.inc"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdio.h> /* IWYU pragma: keep */
|
||||
|
||||
#include "sd-forward.h"
|
||||
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
BEGIN{
|
||||
print "#include <linux/audit.h>"
|
||||
print ""
|
||||
print "#include \"audit-type.h\""
|
||||
print "const char *audit_type_to_string(int type) {"
|
||||
print " switch (type) {"
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
||||
#pragma once
|
||||
|
||||
#include "syslog-util.h"
|
||||
#include "syslog-util.h" /* IWYU pragma: keep */
|
||||
|
||||
int journal_fd_nonblock(bool nonblock);
|
||||
void close_journal_fd(void);
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
#include "iovec-util.h"
|
||||
#include "journal-file-util.h"
|
||||
#include "journal-internal.h"
|
||||
#include "log.h"
|
||||
#include "parse-util.h"
|
||||
#include "rm-rf.h"
|
||||
#include "tests.h"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
#include "sd-forward.h"
|
||||
#include "log.h"
|
||||
#include "string-util.h"
|
||||
#include "string-util.h" /* IWYU pragma: keep */
|
||||
|
||||
#define JSON_VARIANT_REPLACE(v, q) \
|
||||
do { \
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
#include <linux/if.h>
|
||||
#include <linux/netfilter/nf_tables.h>
|
||||
#include <linux/netfilter/nfnetlink.h>
|
||||
#include <linux/netlink.h>
|
||||
#include <linux/netlink.h> /* IWYU pragma: keep */
|
||||
|
||||
#include "netlink-types-internal.h"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user