diff --git a/script/run-clang-format.py b/script/run-clang-format.py index 8c7eccf05359..f9d276dc14f4 100644 --- a/script/run-clang-format.py +++ b/script/run-clang-format.py @@ -15,6 +15,7 @@ import fnmatch import io import multiprocessing import os +import posixpath import signal import subprocess import sys @@ -135,6 +136,8 @@ def run_clang_format_diff(args, file_name): proc.returncode, file_name), errs) if args.fix: return None, errs + if sys.platform == 'win32': + file_name = file_name.replace(os.sep, posixpath.sep) return make_diff(file_name, original, outs), errs