refactor: run clang linter and formatter

This commit is contained in:
CJ van den Berg 2025-01-20 18:21:54 +01:00
parent 7668befc06
commit 2dd2b9e087
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
27 changed files with 189 additions and 157 deletions

View file

@ -66,5 +66,4 @@ auto thespian_handle_is_expired(thespian_handle h) -> bool {
h)};
return h_->expired();
}
}

View file

@ -14,8 +14,7 @@ using thespian::stop_metronome;
extern "C" {
auto thespian_metronome_create_ms(uint64_t ms)
-> thespian_metronome_handle * {
auto thespian_metronome_create_ms(uint64_t ms) -> thespian_metronome_handle * {
try {
auto *handle = thespian::create_metronome(milliseconds(ms)).ref.release();
return reinterpret_cast<thespian_metronome_handle *>(handle); // NOLINT
@ -27,8 +26,7 @@ auto thespian_metronome_create_ms(uint64_t ms)
return nullptr;
}
}
auto thespian_metronome_create_us(uint64_t us)
-> thespian_metronome_handle * {
auto thespian_metronome_create_us(uint64_t us) -> thespian_metronome_handle * {
try {
auto *handle = thespian::create_metronome(microseconds(us)).ref.release();
return reinterpret_cast<thespian_metronome_handle *>(handle); // NOLINT

View file

@ -18,5 +18,4 @@ void thespian_trace_to_cbor_file(const char *file_name) {
void thespian_trace_to_mermaid_file(const char *file_name) {
thespian::trace_to_mermaid_file(file_name);
}
}