Skip to content

Commit 44c2c9a

Browse files
committed
tree-wide: Mark linux and sys includes as system includes
Even though these are in our tree, we should still treat them as system includes which helps various tools (clangd, iwyu, ...) understand that these are system includes and <> should be used instead of "".
1 parent 9fea5b4 commit 44c2c9a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

91 files changed

+23
-16
lines changed

LICENSES/README.md

Lines changed: 4 additions & 4 deletions

coccinelle/run-coccinelle.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
# Exclude following paths from the Coccinelle transformations
66
EXCLUDED_PATHS=(
77
"src/boot/efi/*"
8-
"src/basic/linux/*"
8+
"src/basic/include/linux/*"
99
# Symlinked to test-bus-vtable-cc.cc, which causes issues with the IN_SET macro
1010
"src/libsystemd/sd-bus/test-bus-vtable.c"
1111
"src/libsystemd/sd-journal/lookup3.c"

meson.build

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2053,11 +2053,18 @@ boot_stubs = []
20532053

20542054
build_dir_include = include_directories('.')
20552055

2056-
basic_includes = include_directories(
2057-
'src/basic',
2058-
'src/fundamental',
2059-
'src/systemd',
2060-
'.')
2056+
basic_includes = [
2057+
include_directories(
2058+
'src/basic',
2059+
'src/fundamental',
2060+
'src/systemd',
2061+
'.',
2062+
),
2063+
include_directories(
2064+
'src/basic/include',
2065+
is_system : true,
2066+
),
2067+
]
20612068

20622069
libsystemd_includes = [basic_includes, include_directories(
20632070
'src/libsystemd/sd-bus',
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)