Nest all namespaces
The compiler supports this now. We can type less going forward.
No functional changes.
Signed-off-by: Stephan Pleines <pleines.stephan@gmail.com>
Change-Id: I29d6fa4f9aacc0e381f1a7637294db0392466995
diff --git a/motors/motor.cc b/motors/motor.cc
index ed1296c..d2c977c 100644
--- a/motors/motor.cc
+++ b/motors/motor.cc
@@ -12,8 +12,7 @@
extern "C" float analog_ratio(uint16_t reading);
extern "C" float absolute_wheel(uint16_t reading);
-namespace frc971 {
-namespace motors {
+namespace frc971::motors {
Motor::Motor(BigFTM *pwm_ftm, LittleFTM *encoder_ftm, MotorControls *controls,
const ::std::array<volatile uint32_t *, 3> &output_registers)
@@ -445,5 +444,4 @@
return (counts_per_cycle() + width) / 2;
}
-} // namespace motors
-} // namespace frc971
+} // namespace frc971::motors