Skip to content

Commit 91b35aa

Browse files
bhavishy2801cvvergara
authored andcommitted
clang-tidy: add cppcoreguidelines-explicit-virtual-functions (pgRouting#3005)
* Add cppcoreguidelines-explicit-virtual-functions * fix warnings in assert.hpp
1 parent 139d94e commit 91b35aa

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)