[PATCH] D99081: [clang-tidy] ensure run-clang-tidy reports children killed by signals
Sylvestre Ledru via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 19 05:18:48 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf6ba03584b3c: [clang-tidy] ensure run-clang-tidy reports children killed by signals (authored by ijc, committed by sylvestre.ledru).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99081/new/
https://reviews.llvm.org/D99081
Files:
clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
Index: clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
===================================================================
--- clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
+++ clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
@@ -173,6 +173,9 @@
proc = subprocess.Popen(invocation, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
output, err = proc.communicate()
if proc.returncode != 0:
+ if proc.returncode < 0:
+ msg = "%s: terminated by signal %d\n" % (name, -proc.returncode)
+ err += msg.encode('utf-8')
failed_files.append(name)
with lock:
sys.stdout.write(' '.join(invocation) + '\n' + output.decode('utf-8'))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99081.359755.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210719/bb2c9f09/attachment.bin>
More information about the cfe-commits
mailing list