mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-24 01:31:46 +00:00
clang-tidy: modernize-concat-nested-namespaces (NFC)
This commit is contained in:
@@ -9,8 +9,7 @@
|
||||
#include <hal/Value.h>
|
||||
#include <wpi/StringRef.h>
|
||||
|
||||
namespace frc {
|
||||
namespace sim {
|
||||
namespace frc::sim {
|
||||
|
||||
using NotifyCallback = std::function<void(wpi::StringRef, const HAL_Value*)>;
|
||||
using ConstBufferCallback = std::function<void(
|
||||
@@ -73,5 +72,4 @@ class CallbackStore {
|
||||
enum CancelType { Normal, Channel, NoIndex };
|
||||
CancelType cancelType;
|
||||
};
|
||||
} // namespace sim
|
||||
} // namespace frc
|
||||
} // namespace frc::sim
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
#include "frc/DriverStation.h"
|
||||
#include "frc/simulation/CallbackStore.h"
|
||||
|
||||
namespace frc {
|
||||
namespace sim {
|
||||
namespace frc::sim {
|
||||
|
||||
/**
|
||||
* Class to control a simulated driver station.
|
||||
@@ -241,5 +240,4 @@ class DriverStationSim {
|
||||
|
||||
static void ResetData();
|
||||
};
|
||||
} // namespace sim
|
||||
} // namespace frc
|
||||
} // namespace frc::sim
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
|
||||
#include "frc/simulation/CallbackStore.h"
|
||||
|
||||
namespace frc {
|
||||
namespace sim {
|
||||
namespace frc::sim {
|
||||
|
||||
/**
|
||||
* Class to control a simulated RoboRIO.
|
||||
@@ -126,5 +125,4 @@ class RoboRioSim {
|
||||
|
||||
static void ResetData();
|
||||
};
|
||||
} // namespace sim
|
||||
} // namespace frc
|
||||
} // namespace frc::sim
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
|
||||
#include "frc/simulation/CallbackStore.h"
|
||||
|
||||
namespace frc {
|
||||
namespace sim {
|
||||
namespace frc::sim {
|
||||
class SPIAccelerometerSim {
|
||||
public:
|
||||
explicit SPIAccelerometerSim(int index);
|
||||
@@ -54,5 +53,4 @@ class SPIAccelerometerSim {
|
||||
private:
|
||||
int m_index;
|
||||
};
|
||||
} // namespace sim
|
||||
} // namespace frc
|
||||
} // namespace frc::sim
|
||||
|
||||
@@ -11,8 +11,7 @@
|
||||
#include <hal/SimDevice.h>
|
||||
#include <hal/simulation/SimDeviceData.h>
|
||||
|
||||
namespace frc {
|
||||
namespace sim {
|
||||
namespace frc::sim {
|
||||
|
||||
/**
|
||||
* Class to control the simulation side of a SimDevice.
|
||||
@@ -62,5 +61,4 @@ class SimDeviceSim {
|
||||
private:
|
||||
HAL_SimDeviceHandle m_handle;
|
||||
};
|
||||
} // namespace sim
|
||||
} // namespace frc
|
||||
} // namespace frc::sim
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
#include <hal/HALBase.h>
|
||||
#include <units/time.h>
|
||||
|
||||
namespace frc {
|
||||
namespace sim {
|
||||
namespace frc::sim {
|
||||
|
||||
void SetRuntimeType(HAL_RuntimeType type);
|
||||
|
||||
@@ -32,5 +31,4 @@ void StepTiming(units::second_t delta);
|
||||
|
||||
void StepTimingAsync(units::second_t delta);
|
||||
|
||||
} // namespace sim
|
||||
} // namespace frc
|
||||
} // namespace frc::sim
|
||||
|
||||
Reference in New Issue
Block a user