From 8138e876cedf396a7dc90409ba70d8f2a5659ecb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 1 Oct 2024 18:25:32 -0400 Subject: Suppress new warnings in clang-tidy 18 --- .clang-tidy | 7 ++++++- benchmark/.clang-tidy | 3 ++- meson.build | 3 ++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.clang-tidy b/.clang-tidy index 0688e7c..64946df 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,4 +1,4 @@ -# Copyright 2020-2022 David Robillard +# Copyright 2020-2024 David Robillard # SPDX-License-Identifier: 0BSD OR GPL-2.0-or-later Checks: > @@ -9,7 +9,9 @@ Checks: > -*-no-malloc, -*-non-private-member-variables-in-classes, -altera-*, + -bugprone-assignment-in-if-condition, -bugprone-easily-swappable-parameters, + -cppcoreguidelines-avoid-do-while, -cppcoreguidelines-owning-memory, -cppcoreguidelines-pro-bounds-constant-array-index, -cppcoreguidelines-pro-bounds-pointer-arithmetic, @@ -19,7 +21,10 @@ Checks: > -google-runtime-int, -google-runtime-references, -llvmlibc-*, + -misc-include-cleaner, -modernize-use-trailing-return-type, + -readability-avoid-const-params-in-decls, + -readability-convert-member-functions-to-static, -readability-identifier-length, -readability-implicit-bool-conversion, WarningsAsErrors: '*' diff --git a/benchmark/.clang-tidy b/benchmark/.clang-tidy index 93f8fdf..5c94fb0 100644 --- a/benchmark/.clang-tidy +++ b/benchmark/.clang-tidy @@ -1,7 +1,8 @@ -# Copyright 2020-2022 David Robillard +# Copyright 2020-2024 David Robillard # SPDX-License-Identifier: 0BSD OR GPL-2.0-or-later Checks: > -llvm-header-guard, + -performance-avoid-endl, -readability-static-accessed-through-instance, InheritParentConfig: true diff --git a/meson.build b/meson.build index ccbac27..e175c30 100644 --- a/meson.build +++ b/meson.build @@ -1,4 +1,4 @@ -# Copyright 2019-2023 David Robillard +# Copyright 2019-2024 David Robillard # SPDX-License-Identifier: 0BSD OR GPL-2.0-or-later project( @@ -34,6 +34,7 @@ if cpp.get_id() in ['clang', 'emscripten'] '-Wno-c++98-compat', '-Wno-c++98-compat-pedantic', '-Wno-padded', + '-Wno-unsafe-buffer-usage', ] if not meson.is_cross_build() -- cgit v1.2.1