Skip to content

Commit 7b7c422

Browse files
authored
clang-tidy: add cppcoreguidelines-explicit-virtual-functions (#3005)
* Add cppcoreguidelines-explicit-virtual-functions * fix warnings in assert.hpp
1 parent 200101d commit 7b7c422

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/cpp_common/assert.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ class AssertFailedException : public std::exception {
143143
const std::string str; ///< Holds what() we got as message
144144

145145
public:
146-
virtual const char *what() const throw();
146+
const char *what() const noexcept override;
147147
explicit AssertFailedException(std::string msg);
148-
virtual ~AssertFailedException() throw() {}
148+
~AssertFailedException() noexcept override {}
149149
};
150150

151151
#endif // INCLUDE_CPP_COMMON_ASSERT_HPP_

0 commit comments

Comments
 (0)