Merge pull request #13436 from JoshuaVandaele/clang-format-19

Update clang-format to version 19
This commit is contained in:
OatmealDome
2025-04-30 01:17:31 -04:00
committed by GitHub
48 changed files with 170 additions and 220 deletions

View File

@ -190,4 +190,4 @@ void ConfigComplexChoice::mousePressEvent(QMouseEvent* event)
{
QComboBox::mousePressEvent(event);
}
};
}

View File

@ -90,7 +90,7 @@ protected:
return Config::Get(setting);
}
virtual void OnConfigChanged(){};
virtual void OnConfigChanged() {}
private:
bool IsConfigLocal() const

View File

@ -80,19 +80,19 @@ public:
[[noreturn]] void setSourceModel(QAbstractItemModel* source_model) override { Crash(); }
bool filterAcceptsRow(int source_row, const QModelIndex& source_parent) const override;
template <bool BranchWatchProxyModel::*member>
template <bool BranchWatchProxyModel::* member>
void OnToggled(bool enabled)
{
this->*member = enabled;
invalidateRowsFilter();
}
template <QString BranchWatchProxyModel::*member>
template <QString BranchWatchProxyModel::* member>
void OnSymbolTextChanged(const QString& text)
{
this->*member = text;
invalidateRowsFilter();
}
template <std::optional<u32> BranchWatchProxyModel::*member>
template <std::optional<u32> BranchWatchProxyModel::* member>
void OnAddressTextChanged(const QString& text)
{
bool ok = false;

View File

@ -62,7 +62,7 @@ public:
// Always connected slots (external signals)
void OnSymbolTextChanged(const QString& text);
template <std::optional<u32> JitBlockProxyModel::*member>
template <std::optional<u32> JitBlockProxyModel::* member>
void OnAddressTextChanged(const QString& text);
private:
@ -81,7 +81,7 @@ void JitBlockProxyModel::OnSymbolTextChanged(const QString& text)
invalidateRowsFilter();
}
template <std::optional<u32> JitBlockProxyModel::*member>
template <std::optional<u32> JitBlockProxyModel::* member>
void JitBlockProxyModel::OnAddressTextChanged(const QString& text)
{
bool ok = false;

View File

@ -51,9 +51,8 @@ GameTracker::GameTracker(QObject* parent) : QFileSystemWatcher(parent)
}
});
connect(&Settings::Instance(), &Settings::MetadataRefreshRequested, this, [this] {
m_load_thread.EmplaceItem(Command{CommandType::UpdateMetadata, {}});
});
connect(&Settings::Instance(), &Settings::MetadataRefreshRequested, this,
[this] { m_load_thread.EmplaceItem(Command{CommandType::UpdateMetadata, {}}); });
m_load_thread.Reset("GameList Tracker", [this](Command command) {
switch (command.type)

View File

@ -70,7 +70,7 @@ auto RunOnObject(QObject* object, F&& functor)
}
template <typename Base, typename Type, typename Receiver>
auto RunOnObject(Receiver* obj, Type Base::*func)
auto RunOnObject(Receiver* obj, Type Base::* func)
{
return RunOnObject(obj, [obj, func] { return (obj->*func)(); });
}