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/queue.h b/motors/usb/queue.h
index 669abe4..f7a7e77 100644
--- a/motors/usb/queue.h
+++ b/motors/usb/queue.h
@@ -1,8 +1,8 @@
#ifndef MOTORS_USB_QUEUE_H_
#define MOTORS_USB_QUEUE_H_
-#include <memory>
#include <atomic>
+#include <memory>
namespace frc971 {
namespace teensy {
@@ -28,9 +28,7 @@
write_cursor_.load(::std::memory_order_relaxed));
}
- size_t space_available() const {
- return size_ - data_queued() - 1;
- }
+ size_t space_available() const { return size_ - data_queued() - 1; }
bool empty() const {
return read_cursor_.load(::std::memory_order_relaxed) ==