From 8b576aa81459c3409c079c67a83259aaafc34734 Mon Sep 17 00:00:00 2001 From: "coderabbitai[bot]" <136622811+coderabbitai[bot]@users.noreply.github.com> Date: Fri, 26 Dec 2025 22:04:07 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=93=9D=20Add=20docstrings=20to=20`bhavish?= =?UTF-8?q?y-clean-clang-tidy`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Docstrings generation was requested by @bhavishy2801. * https://github.com/pgRouting/pgrouting/pull/3005#issuecomment-3693412155 The following files were modified: * `include/cpp_common/assert.hpp` --- include/cpp_common/assert.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/cpp_common/assert.hpp b/include/cpp_common/assert.hpp index 2afe6d5a254..f56e89514c4 100644 --- a/include/cpp_common/assert.hpp +++ b/include/cpp_common/assert.hpp @@ -143,9 +143,14 @@ class AssertFailedException : public std::exception { const std::string str; ///< Holds what() we got as message public: - virtual const char *what() const throw(); + const char *what() const throw() override; explicit AssertFailedException(std::string msg); - virtual ~AssertFailedException() throw() {} + /** + * @brief Destroys the AssertFailedException. + * + * Ensures any resources owned by the exception object are released. + */ +~AssertFailedException() throw() override {} }; -#endif // INCLUDE_CPP_COMMON_ASSERT_HPP_ +#endif // INCLUDE_CPP_COMMON_ASSERT_HPP_ \ No newline at end of file