From 724d96dbfb0ba68b671ba9fdb244653eff30258b Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sun, 5 Apr 2026 13:52:32 -1000 Subject: [PATCH] Fix clang-tidy redundant-declaration for _irom0_text_end --- esphome/components/esp8266/crash_handler.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/esphome/components/esp8266/crash_handler.cpp b/esphome/components/esp8266/crash_handler.cpp index afc80866ca..e187b0e67c 100644 --- a/esphome/components/esp8266/crash_handler.cpp +++ b/esphome/components/esp8266/crash_handler.cpp @@ -27,10 +27,11 @@ static constexpr uint32_t IRAM_END = 0x40108000; // 32KB // Linker symbols for the actual firmware IROM section. // Using these instead of a conservative upper bound (0x40400000) prevents // false positives from stale stack values beyond the actual flash mapping. -// Declared as void functions to match the Arduino core's mmu_iram.h declarations. extern "C" { -extern void _irom0_text_start(void); // NOLINT(bugprone-reserved-identifier,readability-identifier-naming) -extern void _irom0_text_end(void); // NOLINT(bugprone-reserved-identifier,readability-identifier-naming) +// NOLINTBEGIN(bugprone-reserved-identifier,readability-identifier-naming,readability-redundant-declaration) +extern void _irom0_text_start(void); +extern void _irom0_text_end(void); +// NOLINTEND(bugprone-reserved-identifier,readability-identifier-naming,readability-redundant-declaration) } // Check if a value looks like a code address in IRAM or flash-mapped IROM.