Skip to content

Commit

Permalink
Apply clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Feb 18, 2024
1 parent 874977d commit b8d5872
Show file tree
Hide file tree
Showing 16 changed files with 10,783 additions and 10,937 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
#if FMT_USE_CONSTEXPR
#define SPDLOG_CONSTEXPR_FUNC FMT_CONSTEXPR
#else
#define SPDLOG_CONSTEXPR_FUNC inline
#define SPDLOG_CONSTEXPR_FUNC inline
#endif
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ SPDLOG_INLINE void file_helper::close() {
}

SPDLOG_INLINE void file_helper::write(const memory_buf_t &buf) {
if(fd_ == nullptr) return;
if (fd_ == nullptr) return;
size_t msg_size = buf.size();
auto data = buf.data();
if (std::fwrite(data, 1, msg_size, fd_) != msg_size) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ class SPDLOG_API registry {
}

std::unique_ptr<periodic_worker> &get_flusher() {
std::lock_guard<std::mutex> lock(flusher_mutex_);
return periodic_flusher_;
std::lock_guard<std::mutex> lock(flusher_mutex_);
return periodic_flusher_;
}

void set_error_handler(err_handler handler);
Expand Down
Loading

0 comments on commit b8d5872

Please sign in to comment.