Add format script which invokes clang-format on the C++ source code (#41)

On Windows machines, clang-format.exe must be in the PATH environment variable.
This commit is contained in:
Tyler Veness
2016-05-20 17:30:37 -07:00
committed by Peter Johnson
parent 68690643d2
commit e14e45da76
383 changed files with 13787 additions and 13198 deletions

View File

@@ -9,8 +9,8 @@
#include <AnalogGyro.h>
#include <Servo.h>
#include <Timer.h>
#include "gtest/gtest.h"
#include "TestBench.h"
#include "gtest/gtest.h"
static constexpr double kServoResetTime = 2.0;
@@ -29,9 +29,9 @@ static constexpr double kSensitivity = 0.013;
*/
class TiltPanCameraTest : public testing::Test {
protected:
static AnalogGyro *m_gyro;
static AnalogGyro* m_gyro;
Servo *m_tilt, *m_pan;
Accelerometer *m_spiAccel;
Accelerometer* m_spiAccel;
static void SetUpTestCase() {
// The gyro object blocks for 5 seconds in the constructor, so only
@@ -66,7 +66,7 @@ class TiltPanCameraTest : public testing::Test {
}
};
AnalogGyro *TiltPanCameraTest::m_gyro = nullptr;
AnalogGyro* TiltPanCameraTest::m_gyro = nullptr;
/**
* Test if the gyro angle defaults to 0 immediately after being reset.