From 7fd45d6dab78c158b12326af4be9ae96ce416adb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 19 Dec 2020 11:59:55 +0100 Subject: Suppress warnings with older clang-tidy --- include/.clang-tidy | 3 +-- include/raul/Exception.hpp | 1 + test/.clang-tidy | 5 +---- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/include/.clang-tidy b/include/.clang-tidy index b209887..c385440 100644 --- a/include/.clang-tidy +++ b/include/.clang-tidy @@ -13,8 +13,7 @@ Checks: > -cppcoreguidelines-pro-bounds-pointer-arithmetic, -cppcoreguidelines-pro-type-const-cast, -cppcoreguidelines-pro-type-reinterpret-cast, - -fuchsia-default-arguments-calls, - -fuchsia-default-arguments-declarations, + -fuchsia-default-arguments*, -fuchsia-overloaded-operator, -google-runtime-int, -hicpp-no-array-decay, diff --git a/include/raul/Exception.hpp b/include/raul/Exception.hpp index 478017d..25e1d03 100644 --- a/include/raul/Exception.hpp +++ b/include/raul/Exception.hpp @@ -26,6 +26,7 @@ namespace Raul { /** An exception (unexpected error). */ class Exception : public std::exception { public: + // NOLINTNEXTLINE(modernize-use-override, hicpp-use-override) const char* what() const noexcept final override { return _what.c_str(); } protected: diff --git a/test/.clang-tidy b/test/.clang-tidy index 4d343a6..eecf9fd 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -15,7 +15,7 @@ Checks: > -cppcoreguidelines-pro-bounds-pointer-arithmetic, -cppcoreguidelines-pro-type-const-cast, -cppcoreguidelines-pro-type-reinterpret-cast, - -fuchsia-default-arguments-*, + -fuchsia-default-arguments*, -fuchsia-overloaded-operator, -google-runtime-int, -google-runtime-references, @@ -27,9 +27,6 @@ Checks: > -modernize-use-trailing-return-type, -readability-implicit-bool-conversion, -readability-use-anyofallof, -CheckOptions: - - key: modernize-use-override.AllowOverrideAndFinal - value: true HeaderFilterRegex: '.*' FormatStyle: file -- cgit v1.2.1