clang-format the src/Reactor directory
Bug: b/144825072
Change-Id: I1f14af4446536c760d11d32aa03edb5f497e75e4
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/39656
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Tested-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/Reactor/Routine.hpp b/src/Reactor/Routine.hpp
index f8083b1..1c0ae1f 100644
--- a/src/Reactor/Routine.hpp
+++ b/src/Reactor/Routine.hpp
@@ -38,12 +38,12 @@
public:
RoutineT() = default;
- explicit RoutineT(const std::shared_ptr<Routine>& routine)
- : routine(routine)
+ explicit RoutineT(const std::shared_ptr<Routine> &routine)
+ : routine(routine)
{
if(routine)
{
- callable = reinterpret_cast<CallableType>(const_cast<void*>(routine->getEntry(0)));
+ callable = reinterpret_cast<CallableType>(const_cast<void *>(routine->getEntry(0)));
}
}
@@ -52,23 +52,23 @@
return callable != nullptr;
}
- template <typename... Args>
- Return operator()(Args&&... args) const
+ template<typename... Args>
+ Return operator()(Args &&... args) const
{
return callable(std::forward<Args>(args)...);
}
- const void* getEntry() const
+ const void *getEntry() const
{
- return reinterpret_cast<void*>(callable);
+ return reinterpret_cast<void *>(callable);
}
private:
std::shared_ptr<Routine> routine;
- using CallableType = Return(*)(Arguments...);
+ using CallableType = Return (*)(Arguments...);
CallableType callable = nullptr;
};
} // namespace rr
-#endif // rr_Routine_hpp
+#endif // rr_Routine_hpp