Skip to content

Commit 0b1fe0d

Browse files
committed
Formatting
1 parent 5bd52aa commit 0b1fe0d

File tree

2 files changed

+27
-26
lines changed

2 files changed

+27
-26
lines changed

src/perf/json/syntax_only.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@
66

77
#include "bench_mark.hpp"
88

9+
// clang-format off
10+
911
int main( int argc, char** argv )
1012
{
1113
for( int i = 1; i < argc; ++i ) {
1214
const auto r = tao::bench::mark( "pegtl", argv[ i ], [&]() {
13-
tao::json_pegtl::file_input< tao::json_pegtl::tracking_mode::LAZY > in( argv[ i ] );
14-
tao::json_pegtl::parse< tao::json_pegtl::must< tao::json_pegtl::json::text, tao::json_pegtl::eof > >( in );
15-
} );
15+
tao::json_pegtl::file_input< tao::json_pegtl::tracking_mode::LAZY > in( argv[ i ] );
16+
tao::json_pegtl::parse< tao::json_pegtl::must< tao::json_pegtl::json::text, tao::json_pegtl::eof > >( in );
17+
} );
1618
tao::bench::mark( "json", argv[ i ], [&]() {
17-
tao::json::events::discard consumer;
18-
tao::json::events::parse_file( consumer, argv[ i ] );
19-
},
20-
r );
19+
tao::json::events::discard consumer;
20+
tao::json::events::parse_file( consumer, argv[ i ] );
21+
}, r );
2122
}
2223
return 0;
2324
}

src/test/json/composite_traits.cpp

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@ namespace tao
128128
TEST_ASSERT( h != v );
129129
TEST_ASSERT( h > v );
130130
TEST_ASSERT( h >= v );
131-
TEST_ASSERT( ! ( h < v ) );
132-
TEST_ASSERT( ! ( h <= v ) );
133-
TEST_ASSERT( ! ( h == v ) );
131+
TEST_ASSERT( !( h < v ) );
132+
TEST_ASSERT( !( h <= v ) );
133+
TEST_ASSERT( !( h == v ) );
134134
TEST_ASSERT( v != h );
135135
TEST_ASSERT( v < h );
136136
TEST_ASSERT( v <= h );
137-
TEST_ASSERT( ! ( v > h ) );
138-
TEST_ASSERT( ! ( v >= h ) );
139-
TEST_ASSERT( ! ( v == h ) );
137+
TEST_ASSERT( !( v > h ) );
138+
TEST_ASSERT( !( v >= h ) );
139+
TEST_ASSERT( !( v == h ) );
140140
}
141141

142142
void test_map()
@@ -156,29 +156,29 @@ namespace tao
156156
TEST_ASSERT( h != v );
157157
TEST_ASSERT( h > v );
158158
TEST_ASSERT( h >= v );
159-
TEST_ASSERT( ! ( h < v ) );
160-
TEST_ASSERT( ! ( h <= v ) );
161-
TEST_ASSERT( ! ( h == v ) );
159+
TEST_ASSERT( !( h < v ) );
160+
TEST_ASSERT( !( h <= v ) );
161+
TEST_ASSERT( !( h == v ) );
162162
TEST_ASSERT( v != h );
163163
TEST_ASSERT( v < h );
164164
TEST_ASSERT( v <= h );
165-
TEST_ASSERT( ! ( v > h ) );
166-
TEST_ASSERT( ! ( v >= h ) );
167-
TEST_ASSERT( ! ( v == h ) );
165+
TEST_ASSERT( !( v > h ) );
166+
TEST_ASSERT( !( v >= h ) );
167+
TEST_ASSERT( !( v == h ) );
168168

169-
const std::map< std::string, std::uint64_t > i = { { "a", 1, }, { "c", 2 }, { "d", 0 } };
169+
const std::map< std::string, std::uint64_t > i = { { "a", 1 }, { "c", 2 }, { "d", 0 } };
170170
TEST_ASSERT( i != v );
171171
TEST_ASSERT( i > v );
172172
TEST_ASSERT( i >= v );
173-
TEST_ASSERT( ! ( i < v ) );
174-
TEST_ASSERT( ! ( i <= v ) );
175-
TEST_ASSERT( ! ( i == v ) );
173+
TEST_ASSERT( !( i < v ) );
174+
TEST_ASSERT( !( i <= v ) );
175+
TEST_ASSERT( !( i == v ) );
176176
TEST_ASSERT( v != i );
177177
TEST_ASSERT( v < i );
178178
TEST_ASSERT( v <= i );
179-
TEST_ASSERT( ! ( v > i ) );
180-
TEST_ASSERT( ! ( v >= i ) );
181-
TEST_ASSERT( ! ( v == i ) );
179+
TEST_ASSERT( !( v > i ) );
180+
TEST_ASSERT( !( v >= i ) );
181+
TEST_ASSERT( !( v == i ) );
182182
}
183183

184184
void unit_test()

0 commit comments

Comments
 (0)