chore: require clang-format 19 (#6236)

This commit is contained in:
nerix
2025-05-25 15:46:28 +02:00
committed by GitHub
parent 8acca1c241
commit 85ae913413
6 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ jobs:
with: with:
source: "./src ./tests/src ./benchmarks/src ./mocks/include" source: "./src ./tests/src ./benchmarks/src ./mocks/include"
extensions: "hpp,cpp" extensions: "hpp,cpp"
clangFormatVersion: 16 clangFormatVersion: 19
- name: Check line-endings - name: Check line-endings
run: ./scripts/check-line-endings.sh run: ./scripts/check-line-endings.sh
+1
View File
@@ -53,6 +53,7 @@
- Dev: Fixed incorrect lua generation of static methods for typescript plugins. (#6190, #6223) - Dev: Fixed incorrect lua generation of static methods for typescript plugins. (#6190, #6223)
- Dev: Merged top/bottom and left/right notebook layouts. (#6215) - Dev: Merged top/bottom and left/right notebook layouts. (#6215)
- Dev: Refactored `Button` and friends. (#6102) - Dev: Refactored `Button` and friends. (#6102)
- Dev: Bumped clang-format requirement to 19. (#6236)
## 2.5.3 ## 2.5.3
@@ -3,7 +3,7 @@
namespace chatterino::filters { namespace chatterino::filters {
ListExpression::ListExpression(ExpressionList &&list) ListExpression::ListExpression(ExpressionList &&list)
: list_(std::move(list)){}; : list_(std::move(list)) {};
QVariant ListExpression::execute(const ContextMap &context) const QVariant ListExpression::execute(const ContextMap &context) const
{ {
@@ -7,7 +7,7 @@ RegexExpression::RegexExpression(const QString &regex, bool caseInsensitive)
, caseInsensitive_(caseInsensitive) , caseInsensitive_(caseInsensitive)
, regex_(QRegularExpression( , regex_(QRegularExpression(
regex, caseInsensitive ? QRegularExpression::CaseInsensitiveOption regex, caseInsensitive ? QRegularExpression::CaseInsensitiveOption
: QRegularExpression::NoPatternOption)){}; : QRegularExpression::NoPatternOption)) {};
QVariant RegexExpression::execute(const ContextMap & /*context*/) const QVariant RegexExpression::execute(const ContextMap & /*context*/) const
{ {
+2 -2
View File
@@ -19,7 +19,7 @@ public:
CancellationToken(const CancellationToken &) = default; CancellationToken(const CancellationToken &) = default;
CancellationToken(CancellationToken &&other) noexcept CancellationToken(CancellationToken &&other) noexcept
: isCancelled_(std::move(other.isCancelled_)){}; : isCancelled_(std::move(other.isCancelled_)) {};
/// @brief This destructor doesn't cancel the token /// @brief This destructor doesn't cancel the token
/// ///
@@ -64,7 +64,7 @@ public:
ScopedCancellationToken(const ScopedCancellationToken &) = delete; ScopedCancellationToken(const ScopedCancellationToken &) = delete;
ScopedCancellationToken(ScopedCancellationToken &&other) noexcept ScopedCancellationToken(ScopedCancellationToken &&other) noexcept
: backingToken_(std::move(other.backingToken_)){}; : backingToken_(std::move(other.backingToken_)) {};
~ScopedCancellationToken() ~ScopedCancellationToken()
{ {
+1 -1
View File
@@ -81,7 +81,7 @@ public:
}; };
IpcQueue::IpcQueue(IpcQueuePrivate *priv) IpcQueue::IpcQueue(IpcQueuePrivate *priv)
: private_(priv){}; : private_(priv) {};
IpcQueue::~IpcQueue() = default; IpcQueue::~IpcQueue() = default;
std::pair<std::unique_ptr<IpcQueue>, QString> IpcQueue::tryReplaceOrCreate( std::pair<std::unique_ptr<IpcQueue>, QString> IpcQueue::tryReplaceOrCreate(