diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/headers/.clang-tidy | 2 | ||||
-rw-r--r-- | test/headers/meson.build | 32 |
2 files changed, 5 insertions, 29 deletions
diff --git a/test/headers/.clang-tidy b/test/headers/.clang-tidy index aa1b43c..6f35b76 100644 --- a/test/headers/.clang-tidy +++ b/test/headers/.clang-tidy @@ -9,5 +9,5 @@ CheckOptions: - key: readability-function-cognitive-complexity.Threshold value: '0' WarningsAsErrors: '*' -HeaderFilterRegex: '.*/sratom/[^/]+.h' +HeaderFilterRegex: '.*' FormatStyle: file diff --git a/test/headers/meson.build b/test/headers/meson.build index 2e18a44..5320627 100644 --- a/test/headers/meson.build +++ b/test/headers/meson.build @@ -5,34 +5,10 @@ header_c_suppressions = [] if get_option('warning_level') == 'everything' if cc.get_id() == 'clang' - header_c_suppressions += [ - '-Wno-cast-align', # LV2 - '-Wno-cast-qual', # LV2 - '-Wno-declaration-after-statement', # LV2 - '-Wno-documentation-unknown-command', # LV2 - '-Wno-padded', # LV2, serd - '-Wno-poison-system-directories', - '-Wno-unsafe-buffer-usage', # LV2 - ] - elif cc.get_id() == 'gcc' - header_c_suppressions += [ - '-Wno-cast-align', # LV2 - '-Wno-cast-qual', # LV2 - '-Wno-padded', # Serd - '-Wno-sign-conversion', # LV2 - '-Wno-unused-const-variable', # Serd - ] - elif cc.get_id() == 'msvc' - header_c_suppressions += [ - '/wd4820', # padding added after construct - ] - endif -endif - -if cc.get_id() == 'clang' - header_c_suppressions += [ - '-Wno-nullability-extension', - ] + if not meson.is_cross_build() + c_suppressions += ['-Wno-poison-system-directories'] + endif + endif endif header_c_suppressions = cc.get_supported_arguments(header_c_suppressions) |