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/frc971/vision/media_device.cc b/frc971/vision/media_device.cc
index 4c227a8..a369cfb 100644
--- a/frc971/vision/media_device.cc
+++ b/frc971/vision/media_device.cc
@@ -15,9 +15,10 @@
#include "absl/strings/str_cat.h"
#include "absl/strings/str_split.h"
+#include "glog/logging.h"
+
#include "aos/scoped/scoped_fd.h"
#include "aos/util/file.h"
-#include "glog/logging.h"
namespace frc971 {
namespace vision {
@@ -263,8 +264,9 @@
format.format.quantization = V4L2_QUANTIZATION_DEFAULT;
format.format.xfer_func = V4L2_XFER_FUNC_DEFAULT;
- LOG(INFO) << "Setting " << entity()->name() << " pad " << index() << " format to "
- << width << "x" << height << " code 0x" << std::hex << code;
+ LOG(INFO) << "Setting " << entity()->name() << " pad " << index()
+ << " format to " << width << "x" << height << " code 0x" << std::hex
+ << code;
PCHECK(ioctl(fd, VIDIOC_SUBDEV_S_FMT, &format) == 0);