[clang-tools-extra] r319148 - run-clang-tidy: Use check_call instead of check_output
Kevin Funk via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 27 23:17:01 PST 2017
Author: kfunk
Date: Mon Nov 27 23:17:01 2017
New Revision: 319148
URL: http://llvm.org/viewvc/llvm-project?rev=319148&view=rev
Log:
run-clang-tidy: Use check_call instead of check_output
Summary:
Streamlines the output under Python 3.x.
Before:
```
b'Enabled checks:\n clang-analyzer-apiModeling.google.GTest\n ...
```
After:
```
Enabled checks:
clang-analyzer-apiModeling.google.GTest
...
```
Reviewers: cfe-commits, alexfh
Reviewed By: alexfh
Subscribers: JDevlieghere
Differential Revision: https://reviews.llvm.org/D37482
Change-Id: I6287104bc73926ae6d0f66c15c250c3cb44bee33
Modified:
clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py
Modified: clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py?rev=319148&r1=319147&r2=319148&view=diff
==============================================================================
--- clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py (original)
+++ clang-tools-extra/trunk/clang-tidy/tool/run-clang-tidy.py Mon Nov 27 23:17:01 2017
@@ -222,7 +222,7 @@ def main():
if args.checks:
invocation.append('-checks=' + args.checks)
invocation.append('-')
- print(subprocess.check_output(invocation))
+ subprocess.check_call(invocation)
except:
print("Unable to run clang-tidy.", file=sys.stderr)
sys.exit(1)
More information about the cfe-commits
mailing list