mirror of
https://github.com/esphome/esphome.git
synced 2026-10-07 03:16:37 +00:00
[clang-tidy] Concatenate nested namespaces (3/7: components i-m) (#16297)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user