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/frc971/analysis/in_process_plotter.cc b/frc971/analysis/in_process_plotter.cc
index b327c54..b537aa4 100644
--- a/frc971/analysis/in_process_plotter.cc
+++ b/frc971/analysis/in_process_plotter.cc
@@ -2,8 +2,7 @@
#include "aos/configuration.h"
-namespace frc971 {
-namespace analysis {
+namespace frc971::analysis {
namespace {
const char *kDataPath = "frc971/analysis/cpp_plot";
@@ -168,5 +167,4 @@
next_top_ = 0;
}
-} // namespace analysis
-} // namespace frc971
+} // namespace frc971::analysis
diff --git a/frc971/analysis/py_log_reader.cc b/frc971/analysis/py_log_reader.cc
index 6ee6c69..57d57d0 100644
--- a/frc971/analysis/py_log_reader.cc
+++ b/frc971/analysis/py_log_reader.cc
@@ -27,8 +27,7 @@
#include "aos/init.h"
#include "aos/json_to_flatbuffer.h"
-namespace frc971 {
-namespace analysis {
+namespace frc971::analysis {
namespace {
// All the data corresponding to a single message.
@@ -300,8 +299,7 @@
}
} // namespace
-} // namespace analysis
-} // namespace frc971
+} // namespace frc971::analysis
PyMODINIT_FUNC PyInit_py_log_reader(void) {
return frc971::analysis::InitModule();