summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/raul/Exception.hpp2
-rw-r--r--test/.clang-tidy4
2 files changed, 4 insertions, 2 deletions
diff --git a/include/raul/Exception.hpp b/include/raul/Exception.hpp
index 0e8d3ba..478017d 100644
--- a/include/raul/Exception.hpp
+++ b/include/raul/Exception.hpp
@@ -26,7 +26,7 @@ namespace Raul {
/** An exception (unexpected error). */
class Exception : public std::exception {
public:
- const char* what() const noexcept final { return _what.c_str(); }
+ const char* what() const noexcept final override { return _what.c_str(); }
protected:
explicit Exception(std::string what) : _what(std::move(what)) {}
diff --git a/test/.clang-tidy b/test/.clang-tidy
index 5b80730..023fd87 100644
--- a/test/.clang-tidy
+++ b/test/.clang-tidy
@@ -29,7 +29,9 @@ Checks: >
-readability-else-after-return,
-readability-implicit-bool-conversion,
-readability-use-anyofallof,
-WarningsAsErrors: '*'
+CheckOptions:
+ - key: modernize-use-override.AllowOverrideAndFinal
+ value: true
HeaderFilterRegex: '.*'
FormatStyle: file