Cppcheck tool - Fix creation of invalid command on windows

The following error occurring when we try to run the cppcheck tool on windows.
As we see in the error message, the command is not well formed.

WafError:
    Command "['C:\\\\Program Files (x86)\\\\Cppcheck\\\\cppcheck.exe'] --inconclusive --report-progress --verbose --xml ..."
returned 1
This commit is contained in:
Thiago da Silva Andrade Soares =^.~= 2016-02-24 16:04:05 -03:00 committed by Thomas Nagy
parent e176101c8c
commit 4bea5a28ae
1 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ def _tgen_create_cmd(self):
bin_enable = self.env.CPPCHECK_BIN_ENABLE
lib_enable = self.env.CPPCHECK_LIB_ENABLE
cmd = '%s' % self.env.CPPCHECK
cmd = self.env.CPPCHECK
args = ['--inconclusive','--report-progress','--verbose','--xml','--xml-version=2']
args.append('--max-configs=%s' % max_configs)
@ -193,7 +193,7 @@ def _tgen_create_cmd(self):
args.append('-I%r' % inc)
for inc in self.to_incnodes(self.to_list(self.env.INCLUDES)):
args.append('-I%r' % inc)
return '%s %s' % (cmd, ' '.join(args))
return cmd + args
class cppcheck(Task.Task):