Skip to content

Commit 8b576aa

Browse files
📝 Add docstrings to bhavishy-clean-clang-tidy
Docstrings generation was requested by @bhavishy2801. * #3005 (comment) The following files were modified: * `include/cpp_common/assert.hpp`
1 parent 5d76cc6 commit 8b576aa

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

include/cpp_common/assert.hpp

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,14 @@ 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 throw() override;
147147
explicit AssertFailedException(std::string msg);
148-
virtual ~AssertFailedException() throw() {}
148+
/**
149+
* @brief Destroys the AssertFailedException.
150+
*
151+
* Ensures any resources owned by the exception object are released.
152+
*/
153+
~AssertFailedException() throw() override {}
149154
};
150155

151-
#endif // INCLUDE_CPP_COMMON_ASSERT_HPP_
156+
#endif // INCLUDE_CPP_COMMON_ASSERT_HPP_

0 commit comments

Comments
 (0)