aboutsummaryrefslogtreecommitdiffstats
path: root/test/headers
diff options
context:
space:
mode:
Diffstat (limited to 'test/headers')
-rw-r--r--test/headers/.clang-tidy5
-rw-r--r--test/headers/meson.build1
-rw-r--r--test/headers/test_headers.c5
3 files changed, 7 insertions, 4 deletions
diff --git a/test/headers/.clang-tidy b/test/headers/.clang-tidy
index eaf6ac95..06ede334 100644
--- a/test/headers/.clang-tidy
+++ b/test/headers/.clang-tidy
@@ -1,4 +1,4 @@
-# Copyright 2020-2022 David Robillard <d@drobilla.net>
+# Copyright 2020-2024 David Robillard <d@drobilla.net>
# SPDX-License-Identifier: 0BSD OR ISC
Checks: >
@@ -6,6 +6,9 @@ Checks: >
-altera-*,
-llvmlibc-*,
-readability-identifier-length,
+CheckOptions:
+ - key: readability-function-cognitive-complexity.Threshold
+ value: '0'
WarningsAsErrors: '*'
HeaderFilterRegex: '.*'
FormatStyle: file
diff --git a/test/headers/meson.build b/test/headers/meson.build
index 6cb14f6e..b9125d2b 100644
--- a/test/headers/meson.build
+++ b/test/headers/meson.build
@@ -38,6 +38,7 @@ test(
files('test_headers.c'),
c_args: header_c_suppressions,
dependencies: serd_dep,
+ implicit_include_directories: false,
),
suite: 'unit',
)
diff --git a/test/headers/test_headers.c b/test/headers/test_headers.c
index c855c103..2f923c7e 100644
--- a/test/headers/test_headers.c
+++ b/test/headers/test_headers.c
@@ -1,10 +1,9 @@
// Copyright 2022 David Robillard <d@drobilla.net>
// SPDX-License-Identifier: ISC
-#include "serd/serd.h" // IWYU pragma: keep
+#include <serd/serd.h> // IWYU pragma: keep
-SERD_CONST_FUNC
-int
+SERD_CONST_FUNC int
main(void)
{
return 0;