Commit 2dbdafa0 authored by Attila Krasznahorkay's avatar Attila Krasznahorkay
Browse files

Applied the suggested clang formatting changes.

parent 40cc2e12
......@@ -11,6 +11,7 @@
// statics
bool StatusCode::s_checking( false );
constexpr const StatusCode::ErrorCode StatusCode::SUCCESS;
constexpr const StatusCode::ErrorCode StatusCode::FAILURE;
constexpr const StatusCode::ErrorCode StatusCode::RECOVERABLE;
......
......@@ -411,18 +411,14 @@ BOOST_AUTO_TEST_CASE( conversions ) {
/// Function used for testing that the constants in @c StatusCode can be found
/// by constant references.
bool __attribute__( ( noinline ) )
testReferencePassing( const StatusCode::ErrorCode& value,
const StatusCode::ErrorCode& reference ) {
testReferencePassing( const StatusCode::ErrorCode& value, const StatusCode::ErrorCode& reference ) {
return ( value == reference );
}
BOOST_AUTO_TEST_CASE( const_definitions ) {
// Test whether the test can compile/link correctly when passing the
// constants in @c StatusCode into a function by constant reference.
BOOST_CHECK( testReferencePassing( StatusCode::SUCCESS,
StatusCode::SUCCESS ) );
BOOST_CHECK( testReferencePassing( StatusCode::FAILURE,
StatusCode::FAILURE ) );
BOOST_CHECK( testReferencePassing( StatusCode::RECOVERABLE,
StatusCode::RECOVERABLE ) );
BOOST_CHECK( testReferencePassing( StatusCode::SUCCESS, StatusCode::SUCCESS ) );
BOOST_CHECK( testReferencePassing( StatusCode::FAILURE, StatusCode::FAILURE ) );
BOOST_CHECK( testReferencePassing( StatusCode::RECOVERABLE, StatusCode::RECOVERABLE ) );
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment