[clang-tidy] Concatenate nested namespaces (1/7: components a-c) (#16294)

This commit is contained in:
Jonathan Swoboda
2026-05-07 14:21:39 -04:00
committed by GitHub
parent 71193e2b2c
commit 06bd92c388
259 changed files with 520 additions and 1037 deletions
@@ -9,8 +9,7 @@
#define BME280_ERROR_WRONG_CHIP_ID "Wrong chip ID or no response"
namespace esphome {
namespace bme280_base {
namespace esphome::bme280_base {
static const char *const TAG = "bme280.sensor";
@@ -355,5 +354,4 @@ uint16_t BME280Component::read_u16_le_(uint8_t a_register) {
}
int16_t BME280Component::read_s16_le_(uint8_t a_register) { return this->read_u16_le_(a_register); }
} // namespace bme280_base
} // namespace esphome
} // namespace esphome::bme280_base
+2 -4
View File
@@ -3,8 +3,7 @@
#include "esphome/core/component.h"
#include "esphome/components/sensor/sensor.h"
namespace esphome {
namespace bme280_base {
namespace esphome::bme280_base {
/// Internal struct storing the calibration values of an BME280.
struct BME280CalibrationData {
@@ -109,5 +108,4 @@ class BME280Component : public PollingComponent {
} error_code_{NONE};
};
} // namespace bme280_base
} // namespace esphome
} // namespace esphome::bme280_base