Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Hadrien Benjamin Grasland
Gaudi
Commits
2dbdafa0
Commit
2dbdafa0
authored
Feb 04, 2019
by
Attila Krasznahorkay
Browse files
Applied the suggested clang formatting changes.
parent
40cc2e12
Changes
2
Hide whitespace changes
Inline
Side-by-side
GaudiKernel/src/Lib/StatusCode.cpp
View file @
2dbdafa0
...
...
@@ -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
;
...
...
GaudiKernel/tests/src/test_StatusCode.cpp
View file @
2dbdafa0
...
...
@@ -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
)
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment