diff options
author | David Robillard <d@drobilla.net> | 2020-12-19 11:59:55 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2020-12-19 12:02:24 +0100 |
commit | 7fd45d6dab78c158b12326af4be9ae96ce416adb (patch) | |
tree | c23711eebd014958755e1c8aed981606097b0fb9 | |
parent | 2a09c19703b242aaf693e5b52a70c1ad65332119 (diff) | |
download | raul-7fd45d6dab78c158b12326af4be9ae96ce416adb.tar.gz raul-7fd45d6dab78c158b12326af4be9ae96ce416adb.tar.bz2 raul-7fd45d6dab78c158b12326af4be9ae96ce416adb.zip |
Suppress warnings with older clang-tidy
-rw-r--r-- | include/.clang-tidy | 3 | ||||
-rw-r--r-- | include/raul/Exception.hpp | 1 | ||||
-rw-r--r-- | 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 |