From 51aae63069fb93a9994cae72f8c28cee06f92362 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 21 Jan 2025 11:48:14 -0500 Subject: Add header warning tests --- bindings/cpp/test/headers/.clang-tidy | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 bindings/cpp/test/headers/.clang-tidy (limited to 'bindings/cpp/test/headers/.clang-tidy') diff --git a/bindings/cpp/test/headers/.clang-tidy b/bindings/cpp/test/headers/.clang-tidy new file mode 100644 index 0000000..0e20b52 --- /dev/null +++ b/bindings/cpp/test/headers/.clang-tidy @@ -0,0 +1,26 @@ +# Copyright 2020-2025 David Robillard +# SPDX-License-Identifier: 0BSD OR ISC + +Checks: > + *, + -*-magic-numbers, + -*-use-using, + -altera-*, + -cppcoreguidelines-avoid-const-or-ref-data-members, + -cppcoreguidelines-pro-bounds-pointer-arithmetic, + -cppcoreguidelines-pro-type-reinterpret-cast, + -llvmlibc-*, + -modernize-redundant-void-arg, + -modernize-use-trailing-return-type, + -performance-enum-size, + -readability-implicit-bool-conversion, +CheckOptions: + - key: readability-function-cognitive-complexity.Threshold + value: '2' + - key: readability-identifier-length.IgnoredParameterNames + value: '^(f)|(id)|(x)|(y)$' + - key: readability-identifier-length.IgnoredVariableNames + value: '^(r)$' +FormatStyle: file +HeaderFilterRegex: '.*' +WarningsAsErrors: '*' -- cgit v1.2.1