linter: Apply clang-format 19.1 formatting

find ./Source/ -name '*.cpp' -o -name '*.h' | xargs clang-format-19 -i
This commit is contained in:
Joshua Vandaële
2025-03-17 12:14:32 +01:00
parent d9d0082018
commit 2c54ee94c1
41 changed files with 159 additions and 212 deletions

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)(); });
}