[hal] Consistently use .hpp for C++ header content

Some headers were renamed, but others were split.
This commit is contained in:
Peter Johnson
2026-01-04 00:41:53 -08:00
parent ab45819f6f
commit a7f71c9434
309 changed files with 1762 additions and 1744 deletions

View File

@@ -4,7 +4,7 @@
#include "wpi/hardware/accelerometer/ADXL345_I2C.hpp"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/nt/DoubleTopic.hpp"
#include "wpi/nt/NTSendableBuilder.hpp"
#include "wpi/util/sendable/SendableRegistry.hpp"

View File

@@ -4,7 +4,7 @@
#include "wpi/hardware/accelerometer/AnalogAccelerometer.hpp"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/system/Errors.hpp"
#include "wpi/util/NullDeleter.hpp"
#include "wpi/util/sendable/SendableBuilder.hpp"

View File

@@ -4,12 +4,10 @@
#include "wpi/hardware/bus/CAN.hpp"
#include <utility>
#include "wpi/hal/CAN.h"
#include "wpi/hal/CANAPI.h"
#include "wpi/hal/Errors.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/system/Errors.hpp"
using namespace wpi;

View File

@@ -7,7 +7,7 @@
#include <algorithm>
#include "wpi/hal/I2C.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/system/Errors.hpp"
using namespace wpi;

View File

@@ -7,7 +7,7 @@
#include <string>
#include "wpi/hal/SerialPort.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/system/Errors.hpp"
using namespace wpi;

View File

@@ -7,11 +7,8 @@
#include <string>
#include "wpi/hal/AnalogInput.h"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/Ports.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/system/Errors.hpp"
#include "wpi/system/Timer.hpp"
#include "wpi/util/SensorUtil.hpp"
#include "wpi/util/StackTrace.hpp"
#include "wpi/util/sendable/SendableBuilder.hpp"

View File

@@ -7,9 +7,7 @@
#include <string>
#include "wpi/hal/DIO.h"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/Ports.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/system/Errors.hpp"
#include "wpi/util/SensorUtil.hpp"
#include "wpi/util/StackTrace.hpp"

View File

@@ -7,9 +7,7 @@
#include <string>
#include "wpi/hal/DIO.h"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/Ports.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/system/Errors.hpp"
#include "wpi/util/SensorUtil.hpp"
#include "wpi/util/StackTrace.hpp"

View File

@@ -4,12 +4,8 @@
#include "wpi/hardware/discrete/PWM.hpp"
#include <utility>
#include "wpi/hal/HALBase.h"
#include "wpi/hal/PWM.h"
#include "wpi/hal/Ports.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/system/Errors.hpp"
#include "wpi/util/SensorUtil.hpp"
#include "wpi/util/StackTrace.hpp"

View File

@@ -6,7 +6,7 @@
#include <memory>
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/hardware/expansionhub/ExpansionHubMotor.hpp"
#include "wpi/hardware/expansionhub/ExpansionHubServo.hpp"
#include "wpi/nt/BooleanTopic.hpp"

View File

@@ -7,10 +7,7 @@
#include <algorithm>
#include "wpi/hal/AddressableLED.h"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/PWM.h"
#include "wpi/hal/Ports.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/system/Errors.hpp"
#include "wpi/util/SensorUtil.hpp"
#include "wpi/util/StackTrace.hpp"

View File

@@ -11,7 +11,7 @@
#include <utility>
#include <vector>
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/math/util/MathUtil.hpp"
#include "wpi/util/MathExtras.hpp"
#include "wpi/util/timestamp.h"

View File

@@ -11,10 +11,9 @@
#include <fmt/format.h>
#include "wpi/framework/RobotBase.hpp"
#include "wpi/hal/Ports.h"
#include "wpi/hal/REVPH.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/hardware/pneumatic/Compressor.hpp"
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
#include "wpi/hardware/pneumatic/Solenoid.hpp"

View File

@@ -11,7 +11,7 @@
#include "wpi/hal/CTREPCM.h"
#include "wpi/hal/Ports.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/hardware/pneumatic/Compressor.hpp"
#include "wpi/hardware/pneumatic/DoubleSolenoid.hpp"
#include "wpi/hardware/pneumatic/Solenoid.hpp"

View File

@@ -8,9 +8,8 @@
#include <fmt/format.h>
#include "wpi/hal/Ports.h"
#include "wpi/hal/PowerDistribution.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/system/Errors.hpp"
#include "wpi/util/StackTrace.hpp"
#include "wpi/util/sendable/SendableBuilder.hpp"

View File

@@ -6,7 +6,7 @@
#include <algorithm>
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/hardware/discrete/AnalogInput.hpp"
#include "wpi/units/length.hpp"
#include "wpi/util/sendable/SendableBuilder.hpp"

View File

@@ -6,7 +6,7 @@
#include <utility>
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/hardware/discrete/AnalogInput.hpp"
#include "wpi/math/util/MathUtil.hpp"
#include "wpi/system/RobotController.hpp"

View File

@@ -5,13 +5,10 @@
#include "wpi/hardware/rotation/DutyCycle.hpp"
#include <string>
#include <utility>
#include "wpi/hal/DutyCycle.h"
#include "wpi/hal/HALBase.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/system/Errors.hpp"
#include "wpi/util/NullDeleter.hpp"
#include "wpi/util/SensorUtil.hpp"
#include "wpi/util/StackTrace.hpp"
#include "wpi/util/sendable/SendableBuilder.hpp"

View File

@@ -4,14 +4,9 @@
#include "wpi/hardware/rotation/Encoder.hpp"
#include <memory>
#include <utility>
#include "wpi/hal/Encoder.h"
#include "wpi/hal/UsageReporting.h"
#include "wpi/hardware/discrete/DigitalInput.hpp"
#include "wpi/hal/UsageReporting.hpp"
#include "wpi/system/Errors.hpp"
#include "wpi/util/NullDeleter.hpp"
#include "wpi/util/sendable/SendableBuilder.hpp"
#include "wpi/util/sendable/SendableRegistry.hpp"