From 3c57dae600a5ad8d05acd53ee3490f7d91cb7be6 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 7 Apr 2026 20:11:31 -0400 Subject: Address new warnings in clang-tidy 22 --- include/lv2/atom/util.h | 2 +- test/.clang-tidy | 3 ++- test/cpp/.clang-tidy | 3 ++- test/headers/.clang-tidy | 3 ++- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/lv2/atom/util.h b/include/lv2/atom/util.h index 9524210..a7e001b 100644 --- a/include/lv2/atom/util.h +++ b/include/lv2/atom/util.h @@ -38,7 +38,7 @@ extern "C" { static inline uint32_t lv2_atom_pad_size(uint32_t size) { - return (size + 7U) & ~(7U); + return (size + 7U) & ~7U; } /** Return the total size of `atom`, including the header. */ diff --git a/test/.clang-tidy b/test/.clang-tidy index a622e62..75dd964 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -1,4 +1,4 @@ -# Copyright 2020-2025 David Robillard +# Copyright 2020-2026 David Robillard # SPDX-License-Identifier: 0BSD OR ISC Checks: > @@ -6,4 +6,5 @@ Checks: > -bugprone-suspicious-include, -modernize-use-trailing-return-type, -readability-function-cognitive-complexity, + -readability-implicit-bool-conversion, InheritParentConfig: true diff --git a/test/cpp/.clang-tidy b/test/cpp/.clang-tidy index 02ee4b8..f5ea45f 100644 --- a/test/cpp/.clang-tidy +++ b/test/cpp/.clang-tidy @@ -1,4 +1,4 @@ -# Copyright 2020-2025 David Robillard +# Copyright 2020-2026 David Robillard # SPDX-License-Identifier: 0BSD OR ISC Checks: > @@ -18,6 +18,7 @@ Checks: > -cppcoreguidelines-use-enum-class, -hicpp-no-array-decay, -hicpp-vararg, + -modernize-avoid-variadic-functions, -modernize-use-using, -performance-enum-size, -readability-implicit-bool-conversion, diff --git a/test/headers/.clang-tidy b/test/headers/.clang-tidy index 60c4447..61ab0b5 100644 --- a/test/headers/.clang-tidy +++ b/test/headers/.clang-tidy @@ -1,4 +1,4 @@ -# Copyright 2020-2025 David Robillard +# Copyright 2020-2026 David Robillard # SPDX-License-Identifier: 0BSD OR ISC Checks: > @@ -10,6 +10,7 @@ Checks: > -bugprone-macro-parentheses, -llvmlibc-*, -readability-identifier-length, + -readability-implicit-bool-conversion, CheckOptions: - key: hicpp-uppercase-literal-suffix.NewSuffixes value: L;U;f -- cgit v1.2.1