[build] Upgrade to wpiformat 2024.33 (#6449)

This upgrades to clang-format and clang-tidy 18.1.1. This has the
constructor attribute formatting fix, so we can remove our
WPI_DEPRECATED macro.
This commit is contained in:
Tyler Veness
2024-03-18 23:11:20 -07:00
committed by GitHub
parent b4674bacb9
commit 5370f249a1
43 changed files with 135 additions and 132 deletions

View File

@@ -150,6 +150,5 @@ int ADXRS450_Gyro::GetPort() const {
void ADXRS450_Gyro::InitSendable(wpi::SendableBuilder& builder) {
builder.SetSmartDashboardType("Gyro");
builder.AddDoubleProperty(
"Value", [=, this] { return GetAngle(); }, nullptr);
builder.AddDoubleProperty("Value", [=, this] { return GetAngle(); }, nullptr);
}

View File

@@ -143,6 +143,5 @@ std::shared_ptr<AnalogInput> AnalogGyro::GetAnalogInput() const {
void AnalogGyro::InitSendable(wpi::SendableBuilder& builder) {
builder.SetSmartDashboardType("Gyro");
builder.AddDoubleProperty(
"Value", [=, this] { return GetAngle(); }, nullptr);
builder.AddDoubleProperty("Value", [=, this] { return GetAngle(); }, nullptr);
}

View File

@@ -45,6 +45,5 @@ double AnalogPotentiometer::Get() const {
void AnalogPotentiometer::InitSendable(wpi::SendableBuilder& builder) {
builder.SetSmartDashboardType("Analog Input");
builder.AddDoubleProperty(
"Value", [=, this] { return Get(); }, nullptr);
builder.AddDoubleProperty("Value", [=, this] { return Get(); }, nullptr);
}

View File

@@ -41,10 +41,7 @@ double BuiltInAccelerometer::GetZ() {
void BuiltInAccelerometer::InitSendable(wpi::SendableBuilder& builder) {
builder.SetSmartDashboardType("3AxisAccelerometer");
builder.AddDoubleProperty(
"X", [=, this] { return GetX(); }, nullptr);
builder.AddDoubleProperty(
"Y", [=, this] { return GetY(); }, nullptr);
builder.AddDoubleProperty(
"Z", [=, this] { return GetZ(); }, nullptr);
builder.AddDoubleProperty("X", [=, this] { return GetX(); }, nullptr);
builder.AddDoubleProperty("Y", [=, this] { return GetY(); }, nullptr);
builder.AddDoubleProperty("Z", [=, this] { return GetZ(); }, nullptr);
}

View File

@@ -320,6 +320,5 @@ bool Counter::GetDirection() const {
void Counter::InitSendable(wpi::SendableBuilder& builder) {
builder.SetSmartDashboardType("Counter");
builder.AddDoubleProperty(
"Value", [=, this] { return Get(); }, nullptr);
builder.AddDoubleProperty("Value", [=, this] { return Get(); }, nullptr);
}

View File

@@ -68,6 +68,5 @@ int DigitalInput::GetChannel() const {
void DigitalInput::InitSendable(wpi::SendableBuilder& builder) {
builder.SetSmartDashboardType("Digital Input");
builder.AddBooleanProperty(
"Value", [=, this] { return Get(); }, nullptr);
builder.AddBooleanProperty("Value", [=, this] { return Get(); }, nullptr);
}

View File

@@ -216,8 +216,7 @@ void Encoder::InitSendable(wpi::SendableBuilder& builder) {
builder.SetSmartDashboardType("Encoder");
}
builder.AddDoubleProperty(
"Speed", [=, this] { return GetRate(); }, nullptr);
builder.AddDoubleProperty("Speed", [=, this] { return GetRate(); }, nullptr);
builder.AddDoubleProperty(
"Distance", [=, this] { return GetDistance(); }, nullptr);
builder.AddDoubleProperty(

View File

@@ -98,6 +98,5 @@ void ExternalDirectionCounter::SetEdgeConfiguration(
void ExternalDirectionCounter::InitSendable(wpi::SendableBuilder& builder) {
builder.SetSmartDashboardType("External Direction Counter");
builder.AddDoubleProperty(
"Count", [&] { return GetCount(); }, nullptr);
builder.AddDoubleProperty("Count", [&] { return GetCount(); }, nullptr);
}

View File

@@ -101,6 +101,5 @@ void UpDownCounter::SetDownEdgeConfiguration(EdgeConfiguration configuration) {
void UpDownCounter::InitSendable(wpi::SendableBuilder& builder) {
builder.SetSmartDashboardType("UpDown Counter");
builder.AddDoubleProperty(
"Count", [&] { return GetCount(); }, nullptr);
builder.AddDoubleProperty("Count", [&] { return GetCount(); }, nullptr);
}