1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-01 10:52:19 +01:00

[CI] Allow clang-tidy to see IDF components (#6903)

* Allow clang-tidy to see IDF components

* Remove camera, add tflite-micro
This commit is contained in:
Keith Burzinski
2024-06-13 05:15:38 -05:00
committed by GitHub
parent b29e1acab8
commit 761aae6f89
3 changed files with 20 additions and 2 deletions

View File

@@ -101,8 +101,10 @@ def clang_options(idedata):
# add library include directories using -isystem to suppress their errors
for directory in sorted(set(idedata["includes"]["build"])):
# skip our own directories, we add those later
if not directory.startswith(f"{root_path}/") or directory.startswith(
f"{root_path}/.pio/"
if (
not directory.startswith(f"{root_path}/")
or directory.startswith(f"{root_path}/.pio/")
or directory.startswith(f"{root_path}/managed_components/")
):
cmd.extend(["-isystem", directory])