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/wpilib/ahal/DutyCycle.h b/frc971/wpilib/ahal/DutyCycle.h
index 88d6a54..3f99d94 100644
--- a/frc971/wpilib/ahal/DutyCycle.h
+++ b/frc971/wpilib/ahal/DutyCycle.h
@@ -7,10 +7,10 @@
#pragma once
-#include <memory>
-
#include <hal/Types.h>
+#include <memory>
+
namespace frc {
class DigitalSource;
class AnalogTrigger;
@@ -41,7 +41,7 @@
*
* @param source The DigitalSource to use.
*/
- explicit DutyCycle(DigitalSource& source);
+ explicit DutyCycle(DigitalSource &source);
/**
* Constructs a DutyCycle input from a DigitalSource input.
*
@@ -49,7 +49,7 @@
*
* @param source The DigitalSource to use.
*/
- explicit DutyCycle(DigitalSource* source);
+ explicit DutyCycle(DigitalSource *source);
/**
* Constructs a DutyCycle input from a DigitalSource input.
*
@@ -64,8 +64,8 @@
*/
virtual ~DutyCycle();
- DutyCycle(DutyCycle&&) = default;
- DutyCycle& operator=(DutyCycle&&) = default;
+ DutyCycle(DutyCycle &&) = default;
+ DutyCycle &operator=(DutyCycle &&) = default;
/**
* Get the frequency of the duty cycle signal.