aboutsummaryrefslogtreecommitdiff
path: root/clang/tools/clang-format/clang-format-diff.py
diff options
context:
space:
mode:
Diffstat (limited to 'clang/tools/clang-format/clang-format-diff.py')
-rwxr-xr-xclang/tools/clang-format/clang-format-diff.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/tools/clang-format/clang-format-diff.py b/clang/tools/clang-format/clang-format-diff.py
index 3a74b90..9eec0f3 100755
--- a/clang/tools/clang-format/clang-format-diff.py
+++ b/clang/tools/clang-format/clang-format-diff.py
@@ -134,7 +134,7 @@ def main():
if line_count != 0:
end_line += line_count - 1
lines_by_file.setdefault(filename, []).extend(
- ["-lines", str(start_line) + ":" + str(end_line)]
+ ["--lines", str(start_line) + ":" + str(end_line)]
)
# Reformat files containing changes in place.
@@ -146,12 +146,12 @@ def main():
if args.i:
command.append("-i")
if args.sort_includes:
- command.append("-sort-includes")
+ command.append("--sort-includes")
command.extend(lines)
if args.style:
- command.extend(["-style", args.style])
+ command.extend(["--style", args.style])
if args.fallback_style:
- command.extend(["-fallback-style", args.fallback_style])
+ command.extend(["--fallback-style", args.fallback_style])
try:
p = subprocess.Popen(