[clang-tidy] Concatenate nested namespaces (3/7: components i-m) (#16297)

This commit is contained in:
Jonathan Swoboda
2026-05-07 19:00:17 -04:00
committed by GitHub
parent 56ef357162
commit cbe192df49
250 changed files with 508 additions and 1013 deletions
+2 -4
View File
@@ -3,8 +3,7 @@
// ArduinoJson::Allocator is included via ArduinoJson.h in json_util.h
namespace esphome {
namespace json {
namespace esphome::json {
static const char *const TAG = "json";
@@ -149,5 +148,4 @@ SerializationBuffer<> JsonBuilder::serialize() {
return result;
}
} // namespace json
} // namespace esphome
} // namespace esphome::json
+2 -4
View File
@@ -13,8 +13,7 @@
#include <ArduinoJson.h>
namespace esphome {
namespace json {
namespace esphome::json {
/// Buffer for JSON serialization that uses stack allocation for small payloads.
/// Template parameter STACK_SIZE specifies the stack buffer size (default 512 bytes).
@@ -192,5 +191,4 @@ class JsonBuilder {
bool root_created_{false};
};
} // namespace json
} // namespace esphome
} // namespace esphome::json