fixed asan escape macro before return type

Signed-off-by: Pratik Mankawde <3397372+pratikmankawde@users.noreply.github.com>
This commit is contained in:
Pratik Mankawde
2026-02-04 15:54:50 +00:00
parent 63b6ec98ea
commit bbb03e153e

View File

@@ -26,7 +26,7 @@ LogThrow(std::string const& title);
control to the next matching exception handler, if any.
Otherwise, std::terminate will be called.
*/
[[noreturn]] inline void XRPL_NO_SANITIZE_ADDRESS
[[noreturn]] XRPL_NO_SANITIZE_ADDRESS inline void
Rethrow()
{
LogThrow("Re-throwing exception");
@@ -34,7 +34,7 @@ Rethrow()
}
template <class E, class... Args>
[[noreturn]] inline void XRPL_NO_SANITIZE_ADDRESS
[[noreturn]] XRPL_NO_SANITIZE_ADDRESS inline void
Throw(Args&&... args)
{
static_assert(std::is_convertible<E*, std::exception*>::value, "Exception must derive from std::exception.");