Skip to content

Commit eb7b085

Browse files
committed
Committing clang-format changes
1 parent b14b9e7 commit eb7b085

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

include/glaze/trace/trace.hpp

+16-16
Original file line numberDiff line numberDiff line change
@@ -157,51 +157,51 @@ namespace glz
157157
std::ignore = glz::write_json(std::forward<Args>(args)..., event->args.str);
158158
}
159159
}
160-
160+
161161
// Automatically adds the end event when it leave scope
162162
struct duration_scoper final
163163
{
164164
trace& tr;
165-
166-
duration_scoper(trace& tr, const std::string_view name) noexcept : tr(tr), name(name) {
165+
166+
duration_scoper(trace& tr, const std::string_view name) noexcept : tr(tr), name(name)
167+
{
167168
if (not tr.disabled) {
168169
tr.begin(name);
169170
}
170171
}
171-
~duration_scoper() noexcept {
172+
~duration_scoper() noexcept
173+
{
172174
if (not tr.disabled) {
173175
tr.end(name);
174176
}
175177
}
176178

177179
const std::string_view name{};
178180
};
179-
181+
180182
struct async_scoper final
181183
{
182184
trace& tr;
183-
184-
async_scoper(trace& tr, const std::string_view name) noexcept : tr(tr), name(name) {
185+
186+
async_scoper(trace& tr, const std::string_view name) noexcept : tr(tr), name(name)
187+
{
185188
if (not tr.disabled) {
186189
tr.begin(name);
187190
}
188191
}
189-
~async_scoper() noexcept {
192+
~async_scoper() noexcept
193+
{
190194
if (not tr.disabled) {
191195
tr.end(name);
192196
}
193197
}
194198

195199
const std::string_view name{};
196200
};
197-
198-
duration_scoper scope(const std::string_view name) {
199-
return {*this, name};
200-
}
201-
202-
async_scoper async_scope(const std::string_view name) {
203-
return {*this, name};
204-
}
201+
202+
duration_scoper scope(const std::string_view name) { return {*this, name}; }
203+
204+
async_scoper async_scope(const std::string_view name) { return {*this, name}; }
205205
};
206206

207207
template <>

0 commit comments

Comments
 (0)