clang-format: update to latest from docs repo
This is from openbmc/docs/style/cpp/.clang-format
Other OpenBMC repos are doing the same.
Tested: Built and validator passed.
Change-Id: Ief26c755c9ce012823e16a506342b0547a53517a
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/http/middleware_context.h b/http/middleware_context.h
index fbe1d80..fa399d6 100644
--- a/http/middleware_context.h
+++ b/http/middleware_context.h
@@ -9,10 +9,10 @@
namespace detail
{
template <typename... Middlewares>
-struct PartialContext
- : public black_magic::PopBack<Middlewares...>::template rebind<
- PartialContext>,
- public black_magic::LastElementType<Middlewares...>::type::Context
+struct PartialContext :
+ public black_magic::PopBack<Middlewares...>::template rebind<
+ PartialContext>,
+ public black_magic::LastElementType<Middlewares...>::type::Context
{
using parent_context = typename black_magic::PopBack<
Middlewares...>::template rebind<::crow::detail::PartialContext>;
@@ -21,15 +21,18 @@
N == sizeof...(Middlewares) - 1, PartialContext,
typename parent_context::template partial<N>>::type;
- template <typename T> typename T::Context& get()
+ template <typename T>
+ typename T::Context& get()
{
return static_cast<typename T::Context&>(*this);
}
};
-template <> struct PartialContext<>
+template <>
+struct PartialContext<>
{
- template <size_t> using partial = PartialContext;
+ template <size_t>
+ using partial = PartialContext;
};
template <size_t N, typename Context, typename Container, typename CurrentMW,
@@ -55,7 +58,8 @@
friend bool middlewareCallHelper(Container& middlewares, Request& req,
Response& res, Context& ctx);
- template <typename T> typename T::Context& get()
+ template <typename T>
+ typename T::Context& get()
{
return static_cast<typename T::Context&>(*this);
}