Skip to content

Commit e87f8d7

Browse files
author
Your Name
committed
Format
1 parent 0e81fca commit e87f8d7

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

lib/utils.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ namespace utils {
437437
* @param t The function forms the lvalue reference to const type of this argument.
438438
*/
439439
template<class T>
440-
// cppcheck-suppress constParameterReference
441-
constexpr typename std::add_const<T>::type & as_const(T& t) noexcept
440+
// cppcheck-suppress constParameterReference
441+
constexpr typename std::add_const<T>::type& as_const(T& t) noexcept
442442
{
443443
static_assert(!std::is_const<T>::value, "object is already const");
444444
static_assert(!std::is_pointer<T>::value, "object is a pointer");

test/testcondition.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4922,8 +4922,9 @@ class TestCondition : public TestFixture {
49224922
" char c = 'A';\n"
49234923
" f0(c);\n"
49244924
"}\n");
4925-
ASSERT_EQUALS("[test.cpp:3:11] -> [test.cpp:4:11]: (style) Condition 'c>=1' is always true [knownConditionTrueFalse]\n",
4926-
errout_str());
4925+
ASSERT_EQUALS(
4926+
"[test.cpp:3:11] -> [test.cpp:4:11]: (style) Condition 'c>=1' is always true [knownConditionTrueFalse]\n",
4927+
errout_str());
49274928
}
49284929

49294930
void alwaysTrueSymbolic()

0 commit comments

Comments
 (0)