Skip to content

Commit

Permalink
clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Oct 19, 2021
1 parent 56c6ecc commit 45b4d68
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion include/tao/pegtl/buffer_input.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ namespace TAO_PEGTL_NAMESPACE
std::terminate();
#endif
}
if( const auto r = m_reader( m_end, (std::min)( buffer_free_after_end(), (std::max)( amount - buffer_occupied(), Chunk ) ) ) ) {
if( const auto r = m_reader( m_end, ( std::min )( buffer_free_after_end(), ( std::max )( amount - buffer_occupied(), Chunk ) ) ) ) {
m_end += r;
}
}
Expand Down
12 changes: 8 additions & 4 deletions include/tao/pegtl/contrib/state_control.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ namespace TAO_PEGTL_NAMESPACE
state.template start< Rule >( in, st... );
}
#if defined( _MSC_VER )
( (void)st, ... );
( (void)st,
... );
#endif
}

Expand All @@ -46,7 +47,8 @@ namespace TAO_PEGTL_NAMESPACE
Control< Rule >::success( in, st... );
}
#if defined( _MSC_VER )
( (void)st, ... );
( (void)st,
... );
#endif
}

Expand All @@ -60,7 +62,8 @@ namespace TAO_PEGTL_NAMESPACE
Control< Rule >::failure( in, st... );
}
#if defined( _MSC_VER )
( (void)st, ... );
( (void)st,
... );
#endif
}

Expand All @@ -84,7 +87,8 @@ namespace TAO_PEGTL_NAMESPACE
Control< Rule >::unwind( in, st... );
}
#if defined( _MSC_VER )
( (void)st, ... );
( (void)st,
... );
#endif
}

Expand Down
6 changes: 3 additions & 3 deletions src/test/pegtl/contrib_integer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ namespace TAO_PEGTL_NAMESPACE
test_unsigned< unsigned char >( "000256" );

test_signed< signed long long >( "0", 0 );
test_signed< signed long long >( (std::numeric_limits< signed long long >::max)() );
test_signed< signed long long >( (std::numeric_limits< signed long long >::min)() );
test_signed< signed long long >( ( std::numeric_limits< signed long long >::max )() );
test_signed< signed long long >( ( std::numeric_limits< signed long long >::min )() );

test_unsigned< unsigned long long >( "0", 0 );
test_unsigned< unsigned long long >( (std::numeric_limits< unsigned long long >::max)() );
test_unsigned< unsigned long long >( ( std::numeric_limits< unsigned long long >::max )() );

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

0 comments on commit 45b4d68

Please sign in to comment.