Clean up include guards and EOF newlines (#65)

* Replaced include guards with #pragma once

* All source files now have exactly one newline appended

Some files had either two newlines at the end or none (which isn't POSIX compliant). This patch fixes that.
This commit is contained in:
Tyler Veness
2016-05-25 22:40:15 -07:00
committed by Peter Johnson
parent d82635bbe1
commit 62812faf62
57 changed files with 56 additions and 194 deletions

View File

@@ -5,8 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef __COMMAND_H__
#define __COMMAND_H__
#pragma once
#include <memory>
#include <set>
@@ -178,5 +177,3 @@ class Command : public ErrorBase, public NamedSendable, public ITableListener {
protected:
std::shared_ptr<ITable> m_table;
};
#endif

View File

@@ -5,8 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef __COMMAND_GROUP_H__
#define __COMMAND_GROUP_H__
#pragma once
#include <list>
#include <vector>
@@ -69,5 +68,3 @@ class CommandGroup : public Command {
/** The current command, -1 signifies that none have been run */
int m_currentCommandIndex = -1;
};
#endif

View File

@@ -5,8 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef __COMMAND_GROUP_ENTRY_H__
#define __COMMAND_GROUP_ENTRY_H__
#pragma once
class Command;
@@ -26,5 +25,3 @@ class CommandGroupEntry {
Command* m_command = nullptr;
Sequence m_state = kSequence_InSequence;
};
#endif

View File

@@ -5,8 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef __PID_COMMAND_H__
#define __PID_COMMAND_H__
#pragma once
#include "Commands/Command.h"
#include "PIDController.h"
@@ -55,5 +54,3 @@ class PIDCommand : public Command, public PIDOutput, public PIDSource {
virtual void InitTable(std::shared_ptr<ITable> table);
virtual std::string GetSmartDashboardType() const;
};
#endif

View File

@@ -5,8 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef __PID_SUBSYSTEM_H__
#define __PID_SUBSYSTEM_H__
#pragma once
#include "Commands/Subsystem.h"
#include "PIDController.h"
@@ -70,5 +69,3 @@ class PIDSubsystem : public Subsystem, public PIDOutput, public PIDSource {
virtual void InitTable(std::shared_ptr<ITable> table);
virtual std::string GetSmartDashboardType() const;
};
#endif

View File

@@ -5,8 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef __PRINT_COMMAND_H__
#define __PRINT_COMMAND_H__
#pragma once
#include <string>
#include "Commands/Command.h"
@@ -26,5 +25,3 @@ class PrintCommand : public Command {
private:
std::string m_message;
};
#endif

View File

@@ -5,8 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef __SCHEDULER_H__
#define __SCHEDULER_H__
#pragma once
#include <list>
#include <map>
@@ -67,4 +66,3 @@ class Scheduler : public ErrorBase, public NamedSendable {
std::shared_ptr<ITable> m_table;
bool m_runningCommandsChanged = false;
};
#endif

View File

@@ -5,8 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef __START_COMMAND_H__
#define __START_COMMAND_H__
#pragma once
#include "Commands/Command.h"
@@ -25,5 +24,3 @@ class StartCommand : public Command {
private:
Command* m_commandToFork;
};
#endif

View File

@@ -5,8 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef __SUBSYSTEM_H__
#define __SUBSYSTEM_H__
#pragma once
#include <memory>
#include <string>
@@ -46,5 +45,3 @@ class Subsystem : public ErrorBase, public NamedSendable {
protected:
std::shared_ptr<ITable> m_table;
};
#endif

View File

@@ -5,8 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef __WAIT_COMMAND_H__
#define __WAIT_COMMAND_H__
#pragma once
#include "Commands/Command.h"
@@ -23,5 +22,3 @@ class WaitCommand : public Command {
virtual void End();
virtual void Interrupted();
};
#endif

View File

@@ -5,8 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef __WAIT_FOR_CHILDREN_H__
#define __WAIT_FOR_CHILDREN_H__
#pragma once
#include "Commands/Command.h"
@@ -23,5 +22,3 @@ class WaitForChildren : public Command {
virtual void End();
virtual void Interrupted();
};
#endif

View File

@@ -5,8 +5,7 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#ifndef __WAIT_UNTIL_COMMAND_H__
#define __WAIT_UNTIL_COMMAND_H__
#pragma once
#include "Commands/Command.h"
@@ -26,5 +25,3 @@ class WaitUntilCommand : public Command {
private:
double m_time;
};
#endif