Fix clangd #include warnings (#8565)

This commit is contained in:
Tyler Veness
2026-02-11 11:15:02 -08:00
committed by GitHub
parent 1680e676b6
commit 245186cb15
70 changed files with 30 additions and 126 deletions

View File

@@ -5,8 +5,6 @@
#include "wpi/util/Alert.hpp"
#include <algorithm>
#include <chrono>
#include <map>
#include <string>
#include <utility>
#include <vector>

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -4,8 +4,6 @@
#include "wpi/event/BooleanEvent.hpp"
#include <atomic>
#include <gtest/gtest.h>
#include "wpi/event/EventLoop.hpp"

View File

@@ -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 {

View File

@@ -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);

View File

@@ -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 {

View File

@@ -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"

View File

@@ -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"

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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"

View File

@@ -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"

View File

@@ -8,7 +8,6 @@
#include <gtest/gtest.h>
#include "wpi/hal/HAL.h"
#include "wpi/hardware/motor/Spark.hpp"
namespace wpi::sim {

View File

@@ -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 {

View File

@@ -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 {

View File

@@ -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"

View File

@@ -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 {

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"