From e728e8ed0cef838e395cc5d1ab79b8d95268bead Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Sat, 13 Dec 2025 06:16:34 +0900 Subject: [PATCH] Apply clang-format suggestions to buildinfo.cpp - Use instead of - Rename config_hash_struct to ConfigHashStruct for naming consistency --- esphome/core/buildinfo.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/esphome/core/buildinfo.cpp b/esphome/core/buildinfo.cpp index 2913b1f898..5a7a4f485c 100644 --- a/esphome/core/buildinfo.cpp +++ b/esphome/core/buildinfo.cpp @@ -1,4 +1,4 @@ -#include +#include // Build information is passed in via symbols defined in a linker script // as that is the simplest way to include build timestamps without the @@ -54,7 +54,7 @@ namespace esphome { namespace buildinfo { // An 8-byte string plus terminating NUL. -struct config_hash_struct { +struct ConfigHashStruct { uintptr_t data0; #ifdef USE_32BIT uintptr_t data1; @@ -62,11 +62,11 @@ struct config_hash_struct { char nul; } __attribute__((packed)); -extern const config_hash_struct CONFIG_HASH_STR = {(uintptr_t) &LINKERSYM(CONFIG_HASH_STR, 0), +extern const ConfigHashStruct CONFIG_HASH_STR = {(uintptr_t) &LINKERSYM(CONFIG_HASH_STR, 0), #ifdef USE_32BIT - (uintptr_t) &LINKERSYM(CONFIG_HASH_STR, 1), + (uintptr_t) &LINKERSYM(CONFIG_HASH_STR, 1), #endif - 0}; + 0}; // A 21-byte string plus terminating NUL, in 24 bytes extern const uintptr_t BUILD_TIME_STR[] = {