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:
@@ -5,8 +5,7 @@
|
||||
|
||||
#include "max7219digit.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace max7219digit {
|
||||
namespace esphome::max7219digit {
|
||||
|
||||
template<typename... Ts> class DisplayInvertAction : public Action<Ts...>, public Parented<MAX7219Component> {
|
||||
public:
|
||||
@@ -48,5 +47,4 @@ template<typename... Ts> class DisplayIntensityAction : public Action<Ts...>, pu
|
||||
}
|
||||
};
|
||||
|
||||
} // namespace max7219digit
|
||||
} // namespace esphome
|
||||
} // namespace esphome::max7219digit
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
#include <algorithm>
|
||||
#include <cinttypes>
|
||||
|
||||
namespace esphome {
|
||||
namespace max7219digit {
|
||||
namespace esphome::max7219digit {
|
||||
|
||||
static const char *const TAG = "max7219DIGIT";
|
||||
|
||||
@@ -352,5 +351,4 @@ uint8_t MAX7219Component::strftimedigit(const char *format, ESPTime time) {
|
||||
return this->strftimedigit(0, format, time);
|
||||
}
|
||||
|
||||
} // namespace max7219digit
|
||||
} // namespace esphome
|
||||
} // namespace esphome::max7219digit
|
||||
|
||||
@@ -8,8 +8,7 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace esphome {
|
||||
namespace max7219digit {
|
||||
namespace esphome::max7219digit {
|
||||
|
||||
enum ChipLinesStyle {
|
||||
ZIGZAG = 0,
|
||||
@@ -120,5 +119,4 @@ class MAX7219Component : public display::DisplayBuffer,
|
||||
max7219_writer_t writer_local_{};
|
||||
};
|
||||
|
||||
} // namespace max7219digit
|
||||
} // namespace esphome
|
||||
} // namespace esphome::max7219digit
|
||||
|
||||
@@ -2,8 +2,7 @@
|
||||
|
||||
#include "esphome/core/hal.h"
|
||||
|
||||
namespace esphome {
|
||||
namespace max7219digit {
|
||||
namespace esphome::max7219digit {
|
||||
|
||||
// bit patterns for the CP437 font
|
||||
|
||||
@@ -266,5 +265,4 @@ constexpr uint8_t MAX7219_DOT_MATRIX_FONT[256][8] PROGMEM = {
|
||||
{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}, // 0xFF
|
||||
}; // end of MAX7219_Dot_Matrix_font
|
||||
|
||||
} // namespace max7219digit
|
||||
} // namespace esphome
|
||||
} // namespace esphome::max7219digit
|
||||
|
||||
Reference in New Issue
Block a user