Skip to content

Commit 45b4d68

Browse files
committed
clang-format
1 parent 56c6ecc commit 45b4d68

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

include/tao/pegtl/buffer_input.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ namespace TAO_PEGTL_NAMESPACE
160160
std::terminate();
161161
#endif
162162
}
163-
if( const auto r = m_reader( m_end, (std::min)( buffer_free_after_end(), (std::max)( amount - buffer_occupied(), Chunk ) ) ) ) {
163+
if( const auto r = m_reader( m_end, ( std::min )( buffer_free_after_end(), ( std::max )( amount - buffer_occupied(), Chunk ) ) ) ) {
164164
m_end += r;
165165
}
166166
}

include/tao/pegtl/contrib/state_control.hpp

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ namespace TAO_PEGTL_NAMESPACE
3232
state.template start< Rule >( in, st... );
3333
}
3434
#if defined( _MSC_VER )
35-
( (void)st, ... );
35+
( (void)st,
36+
... );
3637
#endif
3738
}
3839

@@ -46,7 +47,8 @@ namespace TAO_PEGTL_NAMESPACE
4647
Control< Rule >::success( in, st... );
4748
}
4849
#if defined( _MSC_VER )
49-
( (void)st, ... );
50+
( (void)st,
51+
... );
5052
#endif
5153
}
5254

@@ -60,7 +62,8 @@ namespace TAO_PEGTL_NAMESPACE
6062
Control< Rule >::failure( in, st... );
6163
}
6264
#if defined( _MSC_VER )
63-
( (void)st, ... );
65+
( (void)st,
66+
... );
6467
#endif
6568
}
6669

@@ -84,7 +87,8 @@ namespace TAO_PEGTL_NAMESPACE
8487
Control< Rule >::unwind( in, st... );
8588
}
8689
#if defined( _MSC_VER )
87-
( (void)st, ... );
90+
( (void)st,
91+
... );
8892
#endif
8993
}
9094

src/test/pegtl/contrib_integer.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,11 +173,11 @@ namespace TAO_PEGTL_NAMESPACE
173173
test_unsigned< unsigned char >( "000256" );
174174

175175
test_signed< signed long long >( "0", 0 );
176-
test_signed< signed long long >( (std::numeric_limits< signed long long >::max)() );
177-
test_signed< signed long long >( (std::numeric_limits< signed long long >::min)() );
176+
test_signed< signed long long >( ( std::numeric_limits< signed long long >::max )() );
177+
test_signed< signed long long >( ( std::numeric_limits< signed long long >::min )() );
178178

179179
test_unsigned< unsigned long long >( "0", 0 );
180-
test_unsigned< unsigned long long >( (std::numeric_limits< unsigned long long >::max)() );
180+
test_unsigned< unsigned long long >( ( std::numeric_limits< unsigned long long >::max )() );
181181

182182
verify_rule< max_seq_rule< 0 > >( __LINE__, __FILE__, "a0b", result_type::success );
183183
verify_rule< max_seq_rule< 0 > >( __LINE__, __FILE__, "ab", result_type::local_failure );

0 commit comments

Comments
 (0)