mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-10-08 11:44:05 +00:00
run-clang-tidy.py: don't fail when running without -checks=.
llvm-svn: 218227
This commit is contained in:
parent
5d45962b2c
commit
f73fe3a04e
@ -131,8 +131,11 @@ def main():
|
||||
args = parser.parse_args()
|
||||
|
||||
try:
|
||||
print subprocess.check_output([args.clang_tidy_binary, '-list-checks',
|
||||
'-checks='+args.checks, 'dummy'])
|
||||
invocation = [args.clang_tidy_binary, '-list-checks']
|
||||
if args.checks:
|
||||
invocation.append('-checks='+args.checks)
|
||||
invocation.append('-')
|
||||
print subprocess.check_output(invocation)
|
||||
except:
|
||||
print >>sys.stderr, "Unable to run clang-tidy."
|
||||
sys.exit(1)
|
||||
|
Loading…
Reference in New Issue
Block a user