mirror of
https://github.com/esphome/esphome.git
synced 2024-11-30 13:04:13 +01:00
[CI] Add/update some system include paths (#7831)
This commit is contained in:
parent
6ee02c47c2
commit
4fbf41472a
@ -63,15 +63,16 @@ Checks: >-
|
||||
-misc-non-private-member-variables-in-classes,
|
||||
-misc-no-recursion,
|
||||
-misc-unused-parameters,
|
||||
-modernize-avoid-c-arrays,
|
||||
-modernize-avoid-bind,
|
||||
-modernize-avoid-c-arrays,
|
||||
-modernize-concat-nested-namespaces,
|
||||
-modernize-return-braced-init-list,
|
||||
-modernize-use-auto,
|
||||
-modernize-use-default-member-init,
|
||||
-modernize-use-equals-default,
|
||||
-modernize-use-trailing-return-type,
|
||||
-modernize-use-nodiscard,
|
||||
-modernize-use-nullptr,
|
||||
-modernize-use-trailing-return-type,
|
||||
-mpi-*,
|
||||
-objc-*,
|
||||
-readability-container-data-pointer,
|
||||
@ -82,6 +83,7 @@ Checks: >-
|
||||
-readability-isolate-declaration,
|
||||
-readability-magic-numbers,
|
||||
-readability-make-member-function-const,
|
||||
-readability-named-parameter,
|
||||
-readability-redundant-string-init,
|
||||
-readability-uppercase-literal-suffix,
|
||||
-readability-use-anyofallof,
|
||||
|
@ -100,10 +100,13 @@ def clang_options(idedata):
|
||||
# add library include directories using -isystem to suppress their errors
|
||||
for directory in list(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/")
|
||||
or directory.startswith(f"{root_path}/managed_components/")
|
||||
if not directory.startswith(f"{root_path}") or directory.startswith(
|
||||
(
|
||||
f"{root_path}/.pio",
|
||||
f"{root_path}/.platformio",
|
||||
f"{root_path}/.temp",
|
||||
f"{root_path}/managed_components",
|
||||
)
|
||||
):
|
||||
cmd.extend(["-isystem", directory])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user