diff --git a/include/tao/pegtl/buffer_input.hpp b/include/tao/pegtl/buffer_input.hpp index 0a0ea7494..60d39d349 100644 --- a/include/tao/pegtl/buffer_input.hpp +++ b/include/tao/pegtl/buffer_input.hpp @@ -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; } } diff --git a/include/tao/pegtl/contrib/state_control.hpp b/include/tao/pegtl/contrib/state_control.hpp index cb41b058c..1f5f7e701 100644 --- a/include/tao/pegtl/contrib/state_control.hpp +++ b/include/tao/pegtl/contrib/state_control.hpp @@ -32,7 +32,8 @@ namespace TAO_PEGTL_NAMESPACE state.template start< Rule >( in, st... ); } #if defined( _MSC_VER ) - ( (void)st, ... ); + ( (void)st, + ... ); #endif } @@ -46,7 +47,8 @@ namespace TAO_PEGTL_NAMESPACE Control< Rule >::success( in, st... ); } #if defined( _MSC_VER ) - ( (void)st, ... ); + ( (void)st, + ... ); #endif } @@ -60,7 +62,8 @@ namespace TAO_PEGTL_NAMESPACE Control< Rule >::failure( in, st... ); } #if defined( _MSC_VER ) - ( (void)st, ... ); + ( (void)st, + ... ); #endif } @@ -84,7 +87,8 @@ namespace TAO_PEGTL_NAMESPACE Control< Rule >::unwind( in, st... ); } #if defined( _MSC_VER ) - ( (void)st, ... ); + ( (void)st, + ... ); #endif } diff --git a/src/test/pegtl/contrib_integer.cpp b/src/test/pegtl/contrib_integer.cpp index d08182a9c..db7b85ce5 100644 --- a/src/test/pegtl/contrib_integer.cpp +++ b/src/test/pegtl/contrib_integer.cpp @@ -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 );