mirror of
https://github.com/esphome/esphome.git
synced 2024-12-03 13:34:01 +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-non-private-member-variables-in-classes,
|
||||||
-misc-no-recursion,
|
-misc-no-recursion,
|
||||||
-misc-unused-parameters,
|
-misc-unused-parameters,
|
||||||
-modernize-avoid-c-arrays,
|
|
||||||
-modernize-avoid-bind,
|
-modernize-avoid-bind,
|
||||||
|
-modernize-avoid-c-arrays,
|
||||||
-modernize-concat-nested-namespaces,
|
-modernize-concat-nested-namespaces,
|
||||||
-modernize-return-braced-init-list,
|
-modernize-return-braced-init-list,
|
||||||
-modernize-use-auto,
|
-modernize-use-auto,
|
||||||
-modernize-use-default-member-init,
|
-modernize-use-default-member-init,
|
||||||
-modernize-use-equals-default,
|
-modernize-use-equals-default,
|
||||||
-modernize-use-trailing-return-type,
|
|
||||||
-modernize-use-nodiscard,
|
-modernize-use-nodiscard,
|
||||||
|
-modernize-use-nullptr,
|
||||||
|
-modernize-use-trailing-return-type,
|
||||||
-mpi-*,
|
-mpi-*,
|
||||||
-objc-*,
|
-objc-*,
|
||||||
-readability-container-data-pointer,
|
-readability-container-data-pointer,
|
||||||
@ -82,6 +83,7 @@ Checks: >-
|
|||||||
-readability-isolate-declaration,
|
-readability-isolate-declaration,
|
||||||
-readability-magic-numbers,
|
-readability-magic-numbers,
|
||||||
-readability-make-member-function-const,
|
-readability-make-member-function-const,
|
||||||
|
-readability-named-parameter,
|
||||||
-readability-redundant-string-init,
|
-readability-redundant-string-init,
|
||||||
-readability-uppercase-literal-suffix,
|
-readability-uppercase-literal-suffix,
|
||||||
-readability-use-anyofallof,
|
-readability-use-anyofallof,
|
||||||
|
@ -100,10 +100,13 @@ def clang_options(idedata):
|
|||||||
# add library include directories using -isystem to suppress their errors
|
# add library include directories using -isystem to suppress their errors
|
||||||
for directory in list(idedata["includes"]["build"]):
|
for directory in list(idedata["includes"]["build"]):
|
||||||
# skip our own directories, we add those later
|
# skip our own directories, we add those later
|
||||||
if (
|
if not directory.startswith(f"{root_path}") or directory.startswith(
|
||||||
not directory.startswith(f"{root_path}/")
|
(
|
||||||
or directory.startswith(f"{root_path}/.pio/")
|
f"{root_path}/.pio",
|
||||||
or directory.startswith(f"{root_path}/managed_components/")
|
f"{root_path}/.platformio",
|
||||||
|
f"{root_path}/.temp",
|
||||||
|
f"{root_path}/managed_components",
|
||||||
|
)
|
||||||
):
|
):
|
||||||
cmd.extend(["-isystem", directory])
|
cmd.extend(["-isystem", directory])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user