Skip to content

Commit ab12a7e

Browse files
use new print function to print file lists
1 parent 9bd8510 commit ab12a7e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

clang/tools/clang-format/git-clang-format

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,12 +265,10 @@ def main():
265265
"Ignoring the following files (wrong extension, symlink, or "
266266
"ignored by clang-format):"
267267
)
268-
for filename in ignored_files:
269-
print_filename(filename, opts.print0)
268+
print_filenames(ignored_files, opts.print0)
270269
if changed_lines:
271270
print("Running clang-format on the following files:")
272-
for filename in changed_lines:
273-
print_filename(filename, opts.print0)
271+
print_filenames(changed_lines, opts.print0)
274272

275273
if not changed_lines:
276274
if opts.verbose >= 0 and not opts.print0:
@@ -309,8 +307,7 @@ def main():
309307
if (opts.verbose >= 0 and not opts.patch) or opts.verbose >= 1:
310308
if not opts.print0:
311309
print("changed files:")
312-
for filename in changed_files:
313-
print_filename(filename, opts.print0)
310+
print_filenames(changed_files, opts.print0)
314311

315312
return 1
316313

0 commit comments

Comments
 (0)