summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2015-09-08 10:31:36 +0000
committerAlexander Kornienko <alexfh@google.com>2015-09-08 10:31:36 +0000
commit3f1153869faa1df53ad0a84f6cfebfeab78cfaff (patch)
tree165a4f6cd98e72d84d7dcc825e286eefe46fb797
parent7a2ba47fbf4cfcddb94c46c4868d374d96c4daf8 (diff)
downloadbcm5719-llvm-3f1153869faa1df53ad0a84f6cfebfeab78cfaff.tar.gz
bcm5719-llvm-3f1153869faa1df53ad0a84f6cfebfeab78cfaff.zip
[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! llvm-svn: 247002
-rwxr-xr-xclang-tools-extra/clang-tidy/tool/run-clang-tidy.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
index f3831605a81..73c5140a180 100755
--- a/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
+++ b/clang-tools-extra/clang-tidy/tool/run-clang-tidy.py
@@ -68,7 +68,7 @@ def get_tidy_invocation(f, clang_tidy_binary, checks, tmpdir, build_path,
# 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:
OpenPOWER on IntegriCloud