[clang-tools-extra] r247002 - [clang-tidy] Fix run-clang-tidy.py.
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Tue Sep 8 03:31:37 PDT 2015
Author: alexfh
Date: Tue Sep 8 05:31:36 2015
New Revision: 247002
URL: http://llvm.org/viewvc/llvm-project?rev=247002&view=rev
Log:
[clang-tidy] Fix run-clang-tidy.py.
Do not add "-*" to the list of checks. Make consistent the list of enabled
checks and the checks in use. Moreover, removing "-*" makes the behaviour
consistent with clang-tidy and allows user to use .clang-tidy configuration...
http://reviews.llvm.org/D12687
Patch by Marek Kurdej!
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=247002&r1=247001&r2=247002&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 Tue Sep 8 05:31:36 2015
@@ -68,7 +68,7 @@ def get_tidy_invocation(f, clang_tidy_bi
# Show warnings in all in-project headers by default.
start.append('-header-filter=^' + build_path + '/.*')
if checks:
- start.append('-checks=-*,' + checks)
+ start.append('-checks=' + checks)
if tmpdir is not None:
start.append('-export-fixes')
# Get a temporary file. We immediately close the handle so clang-tidy can
@@ -133,7 +133,7 @@ def main():
try:
invocation = [args.clang_tidy_binary, '-list-checks']
if args.checks:
- invocation.append('-checks='+args.checks)
+ invocation.append('-checks=' + args.checks)
invocation.append('-')
print subprocess.check_output(invocation)
except:
More information about the cfe-commits
mailing list