1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 10:37: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:
Timothy Flynn 2023-07-07 22:48:11 -04:00 committed by Linus Groh
parent aff81d318b
commit c911781c21
243 changed files with 483 additions and 481 deletions

View file

@ -47,7 +47,7 @@ public:
{
m_removed = true;
list.remove(*this);
};
}
private:
friend ListType;

View file

@ -448,7 +448,7 @@ inline constexpr bool IsFundamental = IsArithmetic<T> || IsVoid<T> || IsNullPoin
template<typename T, T... Ts>
struct IntegerSequence {
using Type = T;
static constexpr unsigned size() noexcept { return sizeof...(Ts); };
static constexpr unsigned size() noexcept { return sizeof...(Ts); }
};
template<unsigned... Indices>

View file

@ -221,9 +221,9 @@ public:
[[nodiscard]] static Duration from_timespec(const struct timespec&);
[[nodiscard]] static Duration from_timeval(const struct timeval&);
// We don't pull in <stdint.h> for the pretty min/max definitions because this file is also included in the Kernel
[[nodiscard]] constexpr static Duration min() { return Duration(-__INT64_MAX__ - 1LL, 0); };
[[nodiscard]] constexpr static Duration zero() { return Duration(0, 0); };
[[nodiscard]] constexpr static Duration max() { return Duration(__INT64_MAX__, 999'999'999); };
[[nodiscard]] constexpr static Duration min() { return Duration(-__INT64_MAX__ - 1LL, 0); }
[[nodiscard]] constexpr static Duration zero() { return Duration(0, 0); }
[[nodiscard]] constexpr static Duration max() { return Duration(__INT64_MAX__, 999'999'999); }
// Truncates towards zero (2.8s to 2s, -2.8s to -2s).
[[nodiscard]] i64 to_truncated_seconds() const;
@ -433,15 +433,15 @@ public:
[[nodiscard]] i64 truncated_seconds_since_epoch() const { return m_offset.to_truncated_seconds(); }
// Offsetting a UNIX time by a duration yields another UNIX time.
constexpr UnixDateTime operator+(Duration const& other) const { return UnixDateTime { m_offset + other }; };
constexpr UnixDateTime operator+(Duration const& other) const { return UnixDateTime { m_offset + other }; }
constexpr UnixDateTime& operator+=(Duration const& other)
{
this->m_offset = this->m_offset + other;
return *this;
};
constexpr UnixDateTime operator-(Duration const& other) const { return UnixDateTime { m_offset - other }; };
}
constexpr UnixDateTime operator-(Duration const& other) const { return UnixDateTime { m_offset - other }; }
// Subtracting two UNIX times yields their time difference.
constexpr Duration operator-(UnixDateTime const& other) const { return m_offset - other.m_offset; };
constexpr Duration operator-(UnixDateTime const& other) const { return m_offset - other.m_offset; }
#ifndef KERNEL
[[nodiscard]] static UnixDateTime now();

View file

@ -115,7 +115,7 @@ public:
static URL create_with_url_or_path(DeprecatedString const&);
static URL create_with_file_scheme(DeprecatedString const& path, DeprecatedString const& fragment = {}, DeprecatedString const& hostname = {});
static URL create_with_help_scheme(DeprecatedString const& path, DeprecatedString const& fragment = {}, DeprecatedString const& hostname = {});
static URL create_with_data(DeprecatedString mime_type, DeprecatedString payload, bool is_base64 = false) { return URL(move(mime_type), move(payload), is_base64); };
static URL create_with_data(DeprecatedString mime_type, DeprecatedString payload, bool is_base64 = false) { return URL(move(mime_type), move(payload), is_base64); }
static bool scheme_requires_port(StringView);
static u16 default_port_for_scheme(StringView);