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/AnalogTrigger.h b/frc971/wpilib/ahal/AnalogTrigger.h
index 9fad5db..fdc12de 100644
--- a/frc971/wpilib/ahal/AnalogTrigger.h
+++ b/frc971/wpilib/ahal/AnalogTrigger.h
@@ -7,10 +7,10 @@
#pragma once
-#include <memory>
-
#include <hal/Types.h>
+#include <memory>
+
#include "frc971/wpilib/ahal/AnalogTriggerOutput.h"
namespace frc {
@@ -24,13 +24,13 @@
public:
explicit AnalogTrigger(int channel);
- explicit AnalogTrigger(AnalogInput* channel);
- explicit AnalogTrigger(DutyCycle* dutyCycle);
+ explicit AnalogTrigger(AnalogInput *channel);
+ explicit AnalogTrigger(DutyCycle *dutyCycle);
virtual ~AnalogTrigger();
- AnalogTrigger(AnalogTrigger&& rhs);
- AnalogTrigger& operator=(AnalogTrigger&& rhs);
+ AnalogTrigger(AnalogTrigger &&rhs);
+ AnalogTrigger &operator=(AnalogTrigger &&rhs);
void SetLimitsVoltage(double lower, double upper);
@@ -55,8 +55,8 @@
private:
hal::Handle<HAL_AnalogTriggerHandle> m_trigger;
- AnalogInput* m_analogInput = nullptr;
- DutyCycle* m_dutyCycle = nullptr;
+ AnalogInput *m_analogInput = nullptr;
+ DutyCycle *m_dutyCycle = nullptr;
bool m_ownsAnalog = false;
};