1
0
mirror of https://github.com/esphome/esphome.git synced 2025-06-18 14:25:48 +01:00

Bump clang-tidy from 11 to 14 ()

This commit is contained in:
Sergey Dudanov
2023-07-30 23:44:56 +04:00
committed by GitHub
parent 3eff7e76aa
commit cd72a2ed7e
17 changed files with 37 additions and 31 deletions

@ -113,7 +113,7 @@ def clang_options(idedata):
def run_tidy(args, options, tmpdir, queue, lock, failed_files):
while True:
path = queue.get()
invocation = ["clang-tidy-11"]
invocation = ["clang-tidy-14"]
if tmpdir is not None:
invocation.append("--export-fixes")
@ -194,14 +194,14 @@ def main():
args = parser.parse_args()
try:
get_output("clang-tidy-11", "-version")
get_output("clang-tidy-14", "-version")
except:
print(
"""
Oops. It looks like clang-tidy-11 is not installed.
Oops. It looks like clang-tidy-14 is not installed.
Please check you can run "clang-tidy-11 -version" in your terminal and install
clang-tidy (v11) if necessary.
Please check you can run "clang-tidy-14 -version" in your terminal and install
clang-tidy (v14) if necessary.
Note you can also upload your code as a pull request on GitHub and see the CI check
output to apply clang-tidy.
@ -272,7 +272,7 @@ def main():
if args.fix and failed_files:
print("Applying fixes ...")
try:
subprocess.call(["clang-apply-replacements-11", tmpdir])
subprocess.call(["clang-apply-replacements-14", tmpdir])
except:
print("Error applying fixes.\n", file=sys.stderr)
raise