mirror of
https://github.com/esphome/esphome.git
synced 2025-01-18 20:10:55 +00:00
Use clang-apply-replacements when clang-apply-replacements-14 does not exist (#6684)
This commit is contained in:
parent
f2caaf85c8
commit
d1758a46bd
@ -265,8 +265,13 @@ def main():
|
|||||||
|
|
||||||
if args.fix and failed_files:
|
if args.fix and failed_files:
|
||||||
print("Applying fixes ...")
|
print("Applying fixes ...")
|
||||||
|
try:
|
||||||
try:
|
try:
|
||||||
subprocess.call(["clang-apply-replacements-14", tmpdir])
|
subprocess.call(["clang-apply-replacements-14", tmpdir])
|
||||||
|
except FileNotFoundError:
|
||||||
|
subprocess.call(["clang-apply-replacements", tmpdir])
|
||||||
|
except FileNotFoundError:
|
||||||
|
print("Error please install clang-apply-replacements-14 or clang-apply-replacements.\n", file=sys.stderr)
|
||||||
except:
|
except:
|
||||||
print("Error applying fixes.\n", file=sys.stderr)
|
print("Error applying fixes.\n", file=sys.stderr)
|
||||||
raise
|
raise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user