daca2: use 'clang' output template

This commit is contained in:
Daniel Marjamäki 2017-05-22 07:44:58 +02:00
parent 7af58cf31a
commit 882e1e6064
1 changed files with 1 additions and 2 deletions

View File

@ -152,9 +152,8 @@ def scanarchive(filepath, jobs, cpulimit):
cmd = 'cpulimit --limit=' + cpulimit cmd = 'cpulimit --limit=' + cpulimit
else: else:
cmd = 'nice --adjustment=1000' cmd = 'nice --adjustment=1000'
cmd = cmd + ' ../cppcheck-O2 -D__GCC__ --enable=style --inconclusive --error-exitcode=0 --exception-handling=stderr ' + jobs + ' .' cmd = cmd + ' ../cppcheck-O2 -D__GCC__ --enable=style --inconclusive --error-exitcode=0 --exception-handling=stderr ' + jobs + ' --template=clang .'
cmds = cmd.split() cmds = cmd.split()
cmds.append('--template={callstack}: ({severity}) {message} [{id}]')
p = subprocess.Popen(cmds, stdout=subprocess.PIPE, stderr=subprocess.PIPE) p = subprocess.Popen(cmds, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
comm = p.communicate() comm = p.communicate()