From f43249e582dd257e533dce71a5cd34785d41f7ef Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 30 May 2022 16:21:43 -0400 Subject: Suppress clang-tidy warnings from C included in C++ Unfortunately, there's no way to exclude included headers from being checked in clang-tidy. The clang-tidy check being reliably green is more important than the possibility of these issues showing up in the code (especially since they only apply to the Qt interface anyway), though, so just disable them for now. --- .clang-tidy | 5 +++++ 1 file changed, 5 insertions(+) (limited to '.clang-tidy') diff --git a/.clang-tidy b/.clang-tidy index 0c011a4..6699db9 100644 --- a/.clang-tidy +++ b/.clang-tidy @@ -1,5 +1,7 @@ Checks: > *, + -*-c-arrays, + -*-deprecated-headers, -*-magic-numbers, -*-named-parameter, -*-narrowing-conversions, @@ -29,7 +31,10 @@ Checks: > -llvm-header-guard, -llvmlibc-*, -misc-no-recursion, + -modernize-redundant-void-arg, + -modernize-use-nullptr, -modernize-use-trailing-return-type, + -modernize-use-using, -readability-function-cognitive-complexity, -readability-implicit-bool-conversion, -readability-non-const-parameter, -- cgit v1.2.1