mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:47:45 +00:00
Everywhere: Remove needless trailing semi-colons after functions
This is a new option in clang-format-16.
This commit is contained in:
parent
aff81d318b
commit
c911781c21
243 changed files with 483 additions and 481 deletions
|
@ -20,7 +20,7 @@ void safe_write(CircularBuffer& buffer, u8 i)
|
|||
Bytes b { &i, 1 };
|
||||
auto written_bytes = buffer.write(b);
|
||||
EXPECT_EQ(written_bytes, 1ul);
|
||||
};
|
||||
}
|
||||
|
||||
void safe_read(CircularBuffer& buffer, u8 supposed_result)
|
||||
{
|
||||
|
@ -29,12 +29,12 @@ void safe_read(CircularBuffer& buffer, u8 supposed_result)
|
|||
b = buffer.read(b);
|
||||
EXPECT_EQ(b.size(), 1ul);
|
||||
EXPECT_EQ(*b.data(), supposed_result);
|
||||
};
|
||||
}
|
||||
|
||||
void safe_discard(CircularBuffer& buffer, size_t size)
|
||||
{
|
||||
TRY_OR_FAIL(buffer.discard(size));
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -186,13 +186,13 @@ TEST_CASE(test_copy_ctor_and_dtor_called)
|
|||
: m_was_move_constructed(other.m_was_move_constructed)
|
||||
{
|
||||
EXPECT(false);
|
||||
};
|
||||
}
|
||||
|
||||
MoveChecker(MoveChecker&& other)
|
||||
: m_was_move_constructed(other.m_was_move_constructed)
|
||||
{
|
||||
m_was_move_constructed = true;
|
||||
};
|
||||
}
|
||||
|
||||
bool& m_was_move_constructed;
|
||||
};
|
||||
|
|
|
@ -138,7 +138,7 @@ TEST_CASE(IsConvertible)
|
|||
};
|
||||
struct C {
|
||||
A a;
|
||||
operator A() { return a; };
|
||||
operator A() { return a; }
|
||||
};
|
||||
struct D {
|
||||
};
|
||||
|
|
|
@ -314,7 +314,7 @@ TEST_CASE(combination_of_bool_options_with_positional_vector_string)
|
|||
parser.add_positional_argument(positionals, "pos", "pos", Core::ArgsParser::Required::No);
|
||||
});
|
||||
EXPECT_EQ(parser_result.result, false);
|
||||
};
|
||||
}
|
||||
|
||||
TEST_CASE(stop_on_first_non_option)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue