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/cdc.cc b/motors/usb/cdc.cc
index 575b4c1..e082156 100644
--- a/motors/usb/cdc.cc
+++ b/motors/usb/cdc.cc
@@ -1,7 +1,7 @@
#include "motors/usb/cdc.h"
-#include <string.h>
#include <stdint.h>
+#include <string.h>
#include "motors/core/time.h"
@@ -129,8 +129,8 @@
{
const auto interface_descriptor = CreateDescriptor(
interface_descriptor_length(), UsbDescriptorType::kInterface);
- interface_descriptor->AddByte(status_interface_); // bInterfaceNumber
- interface_descriptor->AddByte(0); // bAlternateSetting
+ interface_descriptor->AddByte(status_interface_); // bInterfaceNumber
+ interface_descriptor->AddByte(0); // bAlternateSetting
interface_descriptor->AddByte(1); // bNumEndpoints
interface_descriptor->AddByte(communications_class()); // bInterfaceClass
interface_descriptor->AddByte(
@@ -157,7 +157,7 @@
call_management->AddByte(
cdc_descriptor_subtype::call_management()); // bDescriptorSubtype
// We don't do call management.
- call_management->AddByte(0); // bmCapabilities
+ call_management->AddByte(0); // bmCapabilities
call_management->AddByte(data_interface_); // bDataInterface
}
@@ -184,7 +184,7 @@
cdc_union_descriptor->AddByte(
cdc_descriptor_subtype::union_function()); // bDescriptorSubtype
cdc_union_descriptor->AddByte(status_interface_); // bMasterInterface
- cdc_union_descriptor->AddByte(data_interface_); // bSlaveInterface
+ cdc_union_descriptor->AddByte(data_interface_); // bSlaveInterface
}
{