diff options
author | David Robillard <d@drobilla.net> | 2022-10-14 13:38:35 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-10-18 13:20:16 -0400 |
commit | 0773e779bee325d364997ff7ec2ef8ec45c474c1 (patch) | |
tree | 2247010cec8d1ea15c2f57a553ebaea7cd171532 /test/headers | |
parent | 7140e86503d98e4b0f7aa65f89b47e4317a56134 (diff) | |
download | zix-0773e779bee325d364997ff7ec2ef8ec45c474c1.tar.gz zix-0773e779bee325d364997ff7ec2ef8ec45c474c1.tar.bz2 zix-0773e779bee325d364997ff7ec2ef8ec45c474c1.zip |
Add stricter test for warnings in public headers
Diffstat (limited to 'test/headers')
-rw-r--r-- | test/headers/.clang-tidy | 11 | ||||
-rw-r--r-- | test/headers/test_headers.c | 24 |
2 files changed, 35 insertions, 0 deletions
diff --git a/test/headers/.clang-tidy b/test/headers/.clang-tidy new file mode 100644 index 0000000..7c6ab44 --- /dev/null +++ b/test/headers/.clang-tidy @@ -0,0 +1,11 @@ +# Copyright 2022 David Robillard <d@drobilla.net> +# SPDX-License-Identifier: CC0-1.0 OR ISC + +Checks: > + *, + -altera-*, + -llvmlibc-*, + -readability-identifier-length, +WarningsAsErrors: '*' +HeaderFilterRegex: '.*' +FormatStyle: file diff --git a/test/headers/test_headers.c b/test/headers/test_headers.c new file mode 100644 index 0000000..43c5482 --- /dev/null +++ b/test/headers/test_headers.c @@ -0,0 +1,24 @@ +// Copyright 2022 David Robillard <d@drobilla.net> +// SPDX-License-Identifier: ISC + +#include "zix/allocator.h" // IWYU pragma: keep +#include "zix/attributes.h" // IWYU pragma: keep +#include "zix/bitset.h" // IWYU pragma: keep +#include "zix/btree.h" // IWYU pragma: keep +#include "zix/bump_allocator.h" // IWYU pragma: keep +#include "zix/common.h" // IWYU pragma: keep +#include "zix/digest.h" // IWYU pragma: keep +#include "zix/hash.h" // IWYU pragma: keep +#include "zix/ring.h" // IWYU pragma: keep +#include "zix/sem.h" // IWYU pragma: keep +#include "zix/thread.h" // IWYU pragma: keep +#include "zix/tree.h" // IWYU pragma: keep + +#if defined(__GNUC__) +__attribute__((const)) +#endif +int +main(void) +{ + return 0; +} |