From dff7757d1e2cb996d0a2c66a5d6075c0a4a71bb8 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Sat, 11 Apr 2026 23:02:16 -1000 Subject: [PATCH] [esp8266] Suppress clang-tidy for __wrap_millis reserved identifier The __wrap_ prefix is required by the GNU linker's --wrap feature. It's a reserved identifier by C++ rules but mandated by the toolchain. --- esphome/components/esp8266/core.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/esphome/components/esp8266/core.cpp b/esphome/components/esp8266/core.cpp index 32dd097c8d4..2a5349b1436 100644 --- a/esphome/components/esp8266/core.cpp +++ b/esphome/components/esp8266/core.cpp @@ -130,6 +130,7 @@ extern "C" void resetPins() { // NOLINT // Linker wrap: redirect all ::millis() calls (Arduino libs, ISRs) to our accumulator. // Requires -Wl,--wrap=millis in build flags (added by __init__.py). +// NOLINTNEXTLINE(bugprone-reserved-identifier,cert-dcl37-c,cert-dcl51-cpp,readability-identifier-naming) extern "C" uint32_t IRAM_ATTR __wrap_millis() { return esphome::millis(); } #endif // USE_ESP8266