mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
linter: Apply clang-format 19.1 formatting
find ./Source/ -name '*.cpp' -o -name '*.h' | xargs clang-format-19 -i
This commit is contained in:
@ -90,7 +90,7 @@ protected:
|
||||
return Config::Get(setting);
|
||||
}
|
||||
|
||||
virtual void OnConfigChanged(){};
|
||||
virtual void OnConfigChanged() {};
|
||||
|
||||
private:
|
||||
bool IsConfigLocal() const
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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)
|
||||
|
@ -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)(); });
|
||||
}
|
||||
|
Reference in New Issue
Block a user