From d016302e36bb0832fd908ad9a3c7fa61017bbaab Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Sat, 13 Dec 2025 12:05:05 +0900 Subject: [PATCH] Convert buildinfo.h to C++17 nested namespace syntax --- esphome/core/buildinfo.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/esphome/core/buildinfo.h b/esphome/core/buildinfo.h index 2217b8bc57..d86b2af067 100644 --- a/esphome/core/buildinfo.h +++ b/esphome/core/buildinfo.h @@ -8,8 +8,7 @@ // This is kept in its own file so that only files that need build-specific // information have to include it explicitly. -namespace esphome { -namespace buildinfo { +namespace esphome::buildinfo { extern const char CONFIG_HASH_STR[]; extern const char BUILD_TIME_STR[]; @@ -21,5 +20,4 @@ static inline time_t get_build_time() { return (time_t) BUILD_TIME; } static inline const char *get_build_time_string() { return BUILD_TIME_STR; } -} // namespace buildinfo -} // namespace esphome +} // namespace esphome::buildinfo