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/motors/usb/usb.h b/motors/usb/usb.h
index 1273efd..1117bc8 100644
--- a/motors/usb/usb.h
+++ b/motors/usb/usb.h
@@ -3,9 +3,10 @@
#include <assert.h>
#include <string.h>
+
+#include <memory>
#include <string>
#include <vector>
-#include <memory>
#include "aos/macros.h"
#include "motors/core/kinetis.h"
@@ -175,9 +176,7 @@
end_index_(end_index),
next_index_(start_index_) {}
- char *data() const {
- return &descriptor_list_->data_[0];
- }
+ char *data() const { return &descriptor_list_->data_[0]; }
UsbDescriptorList *const descriptor_list_;
const int start_index_, end_index_;