Run clang-format on the entire repo
This patch clang-formats the entire repo. Third-party code is
excluded.
I needed to fix up the .clang-format file so that all the header
includes are ordered properly. I could have sworn that it used to work
without the extra modification, but I guess not.
Signed-off-by: Philipp Schrader <philipp.schrader@gmail.com>
Change-Id: I64bb9f2c795401393f9dfe2fefc4f04cb36b52f6
diff --git a/aos/events/event_loop_tmpl.h b/aos/events/event_loop_tmpl.h
index 39ab43e..6c132b2 100644
--- a/aos/events/event_loop_tmpl.h
+++ b/aos/events/event_loop_tmpl.h
@@ -5,9 +5,10 @@
#include <cstdint>
#include <type_traits>
-#include "aos/events/event_loop.h"
#include "glog/logging.h"
+#include "aos/events/event_loop.h"
+
namespace aos {
namespace event_loop_internal {
@@ -36,9 +37,8 @@
template <typename Watch>
void EventLoop::MakeWatcher(const std::string_view channel_name, Watch &&w) {
- using MessageType =
- typename event_loop_internal::watch_message_type_trait<decltype(
- &Watch::operator())>::message_type;
+ using MessageType = typename event_loop_internal::watch_message_type_trait<
+ decltype(&Watch::operator())>::message_type;
const Channel *channel = configuration::GetChannel(
configuration_, channel_name, MessageType::GetFullyQualifiedName(),
name(), node());