Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
gabime committed Sep 7, 2019
1 parent 6883267 commit bd9e147
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion include/spdlog/details/circular_q.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ class circular_q

private:
// copy from other&& and reset it to disabled state
void copy_moveable(circular_q &&other) SPDLOG_NOEXCEPT
void copy_moveable(circular_q &&other) SPDLOG_NOEXCEPT
{
max_items_ = other.max_items_;
head_ = other.head_;
Expand Down
12 changes: 6 additions & 6 deletions include/spdlog/logger-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ SPDLOG_INLINE void logger::swap(spdlog::logger &other) SPDLOG_NOEXCEPT
sinks_.swap(other.sinks_);

// swap level_
auto tmp = other.level_.load();
tmp = level_.exchange(tmp);
other.level_.store(tmp);
auto other_level = other.level_.load();
auto my_level = level_.exchange(other_level);
other.level_.store(my_level);

// swap flush level_
tmp = other.flush_level_.load();
tmp = flush_level_.exchange(tmp);
other.flush_level_.store(tmp);
other_level = other.flush_level_.load();
my_level = flush_level_.exchange(other_level);
other.flush_level_.store(my_level);

custom_err_handler_.swap(other.custom_err_handler_);
std::swap(tracer_, other.tracer_);
Expand Down
1 change: 0 additions & 1 deletion include/spdlog/spdlog.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "spdlog/version.h"
#include "spdlog/details/synchronous_factory.h"


#include <chrono>
#include <functional>
#include <memory>
Expand Down
4 changes: 2 additions & 2 deletions src/fmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ template FMT_API void internal::buffer<char>::append(const char *, const char *)
template FMT_API void internal::arg_map<format_context>::init(const basic_format_args<format_context> &args);
template FMT_API std::string internal::vformat<char>(string_view, basic_format_args<format_context>);
template FMT_API format_context::iterator internal::vformat_to(internal::buffer<char> &, string_view, basic_format_args<format_context>);
template FMT_API char* internal::sprintf_format(double, internal::buffer<char> &, sprintf_specs);
template FMT_API char* internal::sprintf_format(long double, internal::buffer<char> &, sprintf_specs);
template FMT_API char *internal::sprintf_format(double, internal::buffer<char> &, sprintf_specs);
template FMT_API char *internal::sprintf_format(long double, internal::buffer<char> &, sprintf_specs);

// Explicit instantiations for wchar_t.
template FMT_API wchar_t internal::thousands_sep_impl(locale_ref);
Expand Down

0 comments on commit bd9e147

Please sign in to comment.