[PATCH] D141230: [clang-format-diff.py] give clang-format-diff a job pool (10x speed)
Sean Maher via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Jan 8 15:51:58 PST 2023
seanptmaher updated this revision to Diff 487243.
seanptmaher added a comment.
Update python formatting
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141230/new/
https://reviews.llvm.org/D141230
Files:
clang/tools/clang-format/clang-format-diff.py
Index: clang/tools/clang-format/clang-format-diff.py
===================================================================
--- clang/tools/clang-format/clang-format-diff.py
+++ clang/tools/clang-format/clang-format-diff.py
@@ -147,11 +147,11 @@
if args.fallback_style:
command.extend(['-fallback-style', args.fallback_style])
try:
- procs[i] = (subprocess.Popen(command,
- stdout=subprocess.PIPE,
- stderr=None,
- stdin=subprocess.PIPE,
- universal_newlines=True))
+ procs[i] = subprocess.Popen(command,
+ stdout=subprocess.PIPE,
+ stderr=None,
+ stdin=subprocess.PIPE,
+ universal_newlines=True)
except OSError as e:
# Give the user more context when clang-format isn't
# found/isn't executable, etc.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141230.487243.patch
Type: text/x-patch
Size: 1082 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230108/773dad11/attachment.bin>
More information about the cfe-commits
mailing list