Skip to content

Commit

Permalink
cleanup: clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
umegane committed Oct 23, 2024
1 parent 05e2cc9 commit aa442d8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/limestone/limestone_exception_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
#pragma once

namespace limestone::testing {
// This flag controls whether exceptions are thrown in tests or the process is aborted
// This flag controls whether exceptions are thrown in tests or the process is aborted
// NOLINTNEXTLINE: non-const global variable is intentional
extern bool enable_exception_throwing;
}
}

namespace limestone {

Expand Down Expand Up @@ -93,6 +94,7 @@ inline void handle_exception_and_abort(std::string_view func_name) {
}

// macro to handle exceptions and abort
// NOLINTNEXTLINE(cppcoreguidelines-macro-usage)
#define HANDLE_EXCEPTION_AND_ABORT() handle_exception_and_abort(static_cast<const char*>(__func__))

} // namespace limestone

0 comments on commit aa442d8

Please sign in to comment.