clang format

This commit is contained in:
IndecisiveTurtle 2024-07-15 03:47:10 +03:00
parent dbeed80e3b
commit ce6a01bd41
7 changed files with 14 additions and 18 deletions

View File

@ -27,18 +27,15 @@ public:
explicit MntPoints() = default; explicit MntPoints() = default;
~MntPoints() = default; ~MntPoints() = default;
void Mount(const std::filesystem::path& host_folder, void Mount(const std::filesystem::path& host_folder, const std::string& guest_folder);
const std::string& guest_folder); void Unmount(const std::filesystem::path& host_folder, const std::string& guest_folder);
void Unmount(const std::filesystem::path& host_folder,
const std::string& guest_folder);
void UnmountAll(); void UnmountAll();
std::filesystem::path GetHostPath(const std::string& guest_directory); std::filesystem::path GetHostPath(const std::string& guest_directory);
const MntPair* GetMount(const std::string& guest_path) { const MntPair* GetMount(const std::string& guest_path) {
const auto it = std::ranges::find_if(m_mnt_pairs, [&](const auto& mount) { const auto it = std::ranges::find_if(
return guest_path.starts_with(mount.mount); m_mnt_pairs, [&](const auto& mount) { return guest_path.starts_with(mount.mount); });
});
return it == m_mnt_pairs.end() ? nullptr : &*it; return it == m_mnt_pairs.end() ? nullptr : &*it;
} }

View File

@ -134,8 +134,7 @@ s32 PS4_SYSV_ABI sceKernelAddHRTimerEvent(SceKernelEqueue eq, int id, timespec*
event.timer = std::make_unique<boost::asio::steady_timer>( event.timer = std::make_unique<boost::asio::steady_timer>(
io_context, std::chrono::microseconds(total_us - HrTimerSpinlockThresholdUs)); io_context, std::chrono::microseconds(total_us - HrTimerSpinlockThresholdUs));
event.timer->async_wait( event.timer->async_wait(std::bind(SmallTimerCallback, std::placeholders::_1, eq, event.event));
std::bind(SmallTimerCallback, std::placeholders::_1, eq, event.event));
if (!eq->AddEvent(event)) { if (!eq->AddEvent(event)) {
return ORBIS_KERNEL_ERROR_ENOMEM; return ORBIS_KERNEL_ERROR_ENOMEM;

View File

@ -12,8 +12,8 @@
namespace Shader::IR { namespace Shader::IR {
template <typename Pred> template <typename Pred>
auto BreadthFirstSearch(const Value& value, Pred&& pred) auto BreadthFirstSearch(const Value& value,
-> std::invoke_result_t<Pred, const Inst*> { Pred&& pred) -> std::invoke_result_t<Pred, const Inst*> {
if (value.IsImmediate()) { if (value.IsImmediate()) {
// Nothing to do with immediates // Nothing to do with immediates
return std::nullopt; return std::nullopt;