Skip to content

Commit

Permalink
fix script/clang-tidy
Browse files Browse the repository at this point in the history
this will allow to run it on systems where the binary is called clang-apply-replacements.
  • Loading branch information
Links2004 committed Apr 26, 2024
1 parent 7b517d9 commit 3bb1db8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion script/clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,12 @@ def main():
if args.fix and failed_files:
print("Applying fixes ...")
try:
subprocess.call(["clang-apply-replacements-14", tmpdir])
try:
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:
print("Error applying fixes.\n", file=sys.stderr)
raise
Expand Down

0 comments on commit 3bb1db8

Please sign in to comment.