Fixed include order (#245)

See wpilibsuite/styleguide (#11).
This commit is contained in:
Tyler Veness
2016-09-25 16:50:13 -07:00
committed by Peter Johnson
parent 107a4cc1e2
commit 5dfae8d6bd
109 changed files with 175 additions and 87 deletions

View File

@@ -9,6 +9,7 @@
#include <memory>
#include <string>
#include "Buttons/Button.h"
class NetworkButton : public Button {

View File

@@ -10,6 +10,7 @@
#include <memory>
#include <set>
#include <string>
#include "ErrorBase.h"
#include "SmartDashboard/NamedSendable.h"
#include "tables/ITableListener.h"

View File

@@ -8,6 +8,7 @@
#pragma once
#include <string>
#include "Commands/Command.h"
class PrintCommand : public Command {

View File

@@ -13,6 +13,7 @@
#include <set>
#include <string>
#include <vector>
#include "Commands/Command.h"
#include "ErrorBase.h"
#include "HAL/cpp/priority_mutex.h"

View File

@@ -9,6 +9,7 @@
#include <memory>
#include <string>
#include "ErrorBase.h"
#include "SmartDashboard/NamedSendable.h"

View File

@@ -7,7 +7,12 @@
#pragma once
#include <stdint.h>
#include <string>
#include "Base.h"
#include "llvm/StringRef.h"
#ifdef _WIN32
#include <Windows.h>
@@ -15,10 +20,6 @@
#undef GetMessage
#endif
#include <stdint.h>
#include <string>
#include "llvm/StringRef.h"
// Forward declarations
class ErrorBase;

View File

@@ -9,7 +9,6 @@
#include "Base.h"
#include "Error.h"
#include "HAL/cpp/priority_mutex.h"
#include "llvm/StringRef.h"

View File

@@ -8,6 +8,7 @@
#pragma once
#include <memory>
#include "PIDSource.h"
/**

View File

@@ -10,6 +10,7 @@
#include <initializer_list>
#include <memory>
#include <vector>
#include "CircularBuffer.h"
#include "Filter.h"

View File

@@ -8,6 +8,7 @@
#pragma once
#include <string>
#include "SmartDashboard/Sendable.h"
/**

View File

@@ -9,6 +9,7 @@
#include <memory>
#include <string>
#include "tables/ITable.h"
class Sendable {

View File

@@ -10,6 +10,7 @@
#include <map>
#include <memory>
#include <string>
#include "SmartDashboard/Sendable.h"
#include "tables/ITable.h"

View File

@@ -10,6 +10,7 @@
#include <iostream>
#include <string>
#include <thread>
#include "ErrorBase.h"
#include "HAL/Task.h"

View File

@@ -12,6 +12,7 @@
*/
#include <stdint.h>
#include <string>
#define wpi_assert(condition) \

View File

@@ -6,6 +6,7 @@
/*----------------------------------------------------------------------------*/
#include "Buttons/NetworkButton.h"
#include "networktables/NetworkTable.h"
NetworkButton::NetworkButton(const std::string& tableName,

View File

@@ -6,7 +6,6 @@
/*----------------------------------------------------------------------------*/
#include "Buttons/Button.h"
#include "Buttons/CancelButtonScheduler.h"
#include "Buttons/HeldButtonScheduler.h"
#include "Buttons/PressedButtonScheduler.h"

View File

@@ -6,7 +6,9 @@
/*----------------------------------------------------------------------------*/
#include "Commands/Command.h"
#include <typeinfo>
#include "Commands/CommandGroup.h"
#include "Commands/Scheduler.h"
#include "RobotState.h"

View File

@@ -6,6 +6,7 @@
/*----------------------------------------------------------------------------*/
#include "Commands/CommandGroup.h"
#include "WPIErrors.h"
/**

View File

@@ -7,7 +7,7 @@
#include "Commands/PIDCommand.h"
#include "float.h"
#include <cfloat>
PIDCommand::PIDCommand(const std::string& name, double p, double i, double d,
double f, double period)

View File

@@ -6,6 +6,7 @@
/*----------------------------------------------------------------------------*/
#include "Commands/PIDSubsystem.h"
#include "PIDController.h"
/**

View File

@@ -10,6 +10,7 @@
#include <algorithm>
#include <iostream>
#include <set>
#include "Buttons/ButtonScheduler.h"
#include "Commands/Subsystem.h"
#include "HLUsageReporting.h"

View File

@@ -6,6 +6,7 @@
/*----------------------------------------------------------------------------*/
#include "Commands/WaitCommand.h"
#include <sstream>
WaitCommand::WaitCommand(double timeout)

View File

@@ -6,6 +6,7 @@
/*----------------------------------------------------------------------------*/
#include "Commands/WaitForChildren.h"
#include "Commands/CommandGroup.h"
WaitForChildren::WaitForChildren(double timeout)

View File

@@ -6,6 +6,7 @@
/*----------------------------------------------------------------------------*/
#include "Commands/WaitUntilCommand.h"
#include "Timer.h"
/**

View File

@@ -6,6 +6,7 @@
/*----------------------------------------------------------------------------*/
#include "GyroBase.h"
#include "LiveWindow/LiveWindow.h"
#include "WPIErrors.h"

View File

@@ -6,8 +6,10 @@
/*----------------------------------------------------------------------------*/
#include "LiveWindow/LiveWindow.h"
#include <algorithm>
#include <sstream>
#include "networktables/NetworkTable.h"
/**

View File

@@ -6,6 +6,7 @@
/*----------------------------------------------------------------------------*/
#include "LiveWindow/LiveWindowStatusListener.h"
#include "Commands/Scheduler.h"
void LiveWindowStatusListener::ValueChanged(ITable* source, llvm::StringRef key,

View File

@@ -6,6 +6,7 @@
/*----------------------------------------------------------------------------*/
#include "Resource.h"
#include "ErrorBase.h"
#include "WPIErrors.h"

View File

@@ -5,8 +5,9 @@
/* the project. */
/*----------------------------------------------------------------------------*/
#include "interfaces/Potentiometer.h"
#include <Utility.h>
#include <interfaces/Potentiometer.h>
void Potentiometer::SetPIDSourceType(PIDSourceType pidSource) {
if (wpi_assert(pidSource == PIDSourceType::kDisplacement)) {