mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Fix clangd #include warnings (#8565)
This commit is contained in:
@@ -5,8 +5,6 @@
|
||||
#include "wpi/util/Alert.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
#include <map>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/simulation/AnalogInputSim.hpp"
|
||||
#include "wpi/simulation/RoboRioSim.hpp"
|
||||
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
|
||||
#include "wpi/hardware/pneumatic/PneumaticsControlModule.hpp"
|
||||
#include "wpi/hardware/pneumatic/Solenoid.hpp"
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
|
||||
#include "wpi/hardware/pneumatic/PneumaticsControlModule.hpp"
|
||||
#include "wpi/hardware/pneumatic/Solenoid.hpp"
|
||||
|
||||
@@ -4,9 +4,7 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
|
||||
#include "wpi/hardware/pneumatic/PneumaticsControlModule.hpp"
|
||||
#include "wpi/hardware/pneumatic/Solenoid.hpp"
|
||||
|
||||
namespace wpi {
|
||||
|
||||
@@ -4,9 +4,7 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
|
||||
#include "wpi/hardware/pneumatic/PneumaticsControlModule.hpp"
|
||||
#include "wpi/hardware/pneumatic/Solenoid.hpp"
|
||||
|
||||
namespace wpi {
|
||||
|
||||
@@ -4,8 +4,6 @@
|
||||
|
||||
#include "wpi/event/BooleanEvent.hpp"
|
||||
|
||||
#include <atomic>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "wpi/event/EventLoop.hpp"
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hardware/led/AddressableLED.hpp"
|
||||
|
||||
namespace wpi::sim {
|
||||
|
||||
@@ -4,17 +4,10 @@
|
||||
|
||||
#include "wpi/simulation/AnalogEncoderSim.hpp"
|
||||
|
||||
#include <numbers>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hardware/discrete/AnalogInput.hpp"
|
||||
#include "wpi/hardware/rotation/AnalogEncoder.hpp"
|
||||
#include "wpi/units/math.hpp"
|
||||
|
||||
#define EXPECT_NEAR_UNITS(val1, val2, eps) \
|
||||
EXPECT_LE(wpi::units::math::abs(val1 - val2), eps)
|
||||
|
||||
TEST(AnalogEncoderSimTest, Basic) {
|
||||
wpi::AnalogInput ai(0);
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hardware/discrete/AnalogInput.hpp"
|
||||
|
||||
namespace wpi::sim {
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
|
||||
#include "wpi/hardware/pneumatic/PneumaticsControlModule.hpp"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hardware/discrete/DigitalInput.hpp"
|
||||
#include "wpi/hardware/discrete/DigitalOutput.hpp"
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hardware/discrete/DigitalOutput.hpp"
|
||||
|
||||
namespace wpi::sim {
|
||||
|
||||
@@ -4,16 +4,12 @@
|
||||
|
||||
#include "wpi/simulation/DriverStationSim.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/driverstation/DriverStation.hpp"
|
||||
#include "wpi/driverstation/Joystick.hpp"
|
||||
#include "wpi/hal/DriverStationTypes.h"
|
||||
#include "wpi/simulation/SimHooks.hpp"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
|
||||
using namespace wpi;
|
||||
using namespace wpi::sim;
|
||||
|
||||
@@ -6,8 +6,7 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hardware/rotation/DutyCycleEncoder.hpp"
|
||||
|
||||
namespace wpi::sim {
|
||||
|
||||
@@ -7,8 +7,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hardware/discrete/DigitalInput.hpp"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hardware/rotation/DutyCycle.hpp"
|
||||
|
||||
namespace wpi::sim {
|
||||
|
||||
@@ -11,7 +11,6 @@
|
||||
#include "wpi/math/controller/PIDController.hpp"
|
||||
#include "wpi/math/system/DCMotor.hpp"
|
||||
#include "wpi/math/system/Models.hpp"
|
||||
#include "wpi/math/system/NumericalIntegration.hpp"
|
||||
#include "wpi/simulation/EncoderSim.hpp"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/units/math.hpp"
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hardware/rotation/Encoder.hpp"
|
||||
#include "wpi/util/deprecated.hpp"
|
||||
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hardware/motor/Spark.hpp"
|
||||
|
||||
namespace wpi::sim {
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hardware/discrete/PWM.hpp"
|
||||
|
||||
namespace wpi::sim {
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/hal/Ports.h"
|
||||
#include "wpi/hardware/power/PowerDistribution.hpp"
|
||||
|
||||
namespace wpi::sim {
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
|
||||
#include "wpi/hardware/pneumatic/PneumaticHub.hpp"
|
||||
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "callback_helpers/TestCallbackHelpers.hpp"
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
|
||||
namespace wpi::sim {
|
||||
|
||||
@@ -2,11 +2,11 @@
|
||||
// Open Source Software; you can modify and/or share it under the terms of
|
||||
// the WPILib BSD license file in the root directory of this project.
|
||||
|
||||
#include <exception>
|
||||
#include <stdexcept>
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "wpi/hal/HAL.h"
|
||||
#include "wpi/hal/HALBase.h"
|
||||
#include "wpi/simulation/AddressableLEDSim.hpp"
|
||||
#include "wpi/simulation/AnalogInputSim.hpp"
|
||||
#include "wpi/simulation/CTREPCMSim.hpp"
|
||||
|
||||
@@ -10,12 +10,8 @@
|
||||
#include "wpi/math/controller/SimpleMotorFeedforward.hpp"
|
||||
#include "wpi/math/system/Models.hpp"
|
||||
#include "wpi/simulation/BatterySim.hpp"
|
||||
#include "wpi/simulation/DifferentialDrivetrainSim.hpp"
|
||||
#include "wpi/simulation/ElevatorSim.hpp"
|
||||
#include "wpi/simulation/EncoderSim.hpp"
|
||||
#include "wpi/simulation/FlywheelSim.hpp"
|
||||
#include "wpi/simulation/LinearSystemSim.hpp"
|
||||
#include "wpi/simulation/PWMSim.hpp"
|
||||
#include "wpi/simulation/RoboRioSim.hpp"
|
||||
#include "wpi/system/RobotController.hpp"
|
||||
#include "wpi/units/angular_acceleration.hpp"
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
#include <fmt/format.h>
|
||||
#include <gtest/gtest.h>
|
||||
|
||||
#include "wpi/nt/NetworkTableInstance.hpp"
|
||||
#include "wpi/nt/StringTopic.hpp"
|
||||
#include "wpi/simulation/SendableChooserSim.hpp"
|
||||
#include "wpi/smartdashboard/SmartDashboard.hpp"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user