[esp32] Fix clang-tidy on ESP-IDF 6 (#16850)

This commit is contained in:
Jonathan Swoboda
2026-06-06 20:00:42 -04:00
committed by GitHub
parent 8400bab926
commit 64fc09646c
6 changed files with 17 additions and 8 deletions

View File

@@ -73,6 +73,7 @@ def clang_options(idedata):
"-freorder-blocks",
"-fno-jump-tables",
"-fno-shrink-wrap",
"-mno-target-align",
)
if "zephyr" in triplet:
@@ -137,6 +138,7 @@ def clang_options(idedata):
if flag not in omit_flags
and not flag.startswith("-Werror")
and not flag.startswith("-std=")
and not flag.startswith("-mtune=esp")
)
cmd.append("-std=gnu++20")