mirror of https://gitlab.com/ita1024/waf.git
use interface function of cpplint module
This commit is contained in:
parent
ca6fe005ef
commit
3dc4357ada
|
@ -185,8 +185,8 @@ class cpplint(Task.Task):
|
|||
global critical_errors
|
||||
with cpplint_wrapper(get_cpplint_logger(self.env.CPPLINT_OUTPUT), self.env.CPPLINT_BREAK, self.env.CPPLINT_OUTPUT):
|
||||
if self.env.CPPLINT_OUTPUT != 'waf':
|
||||
cpplint_tool._cpplint_state.output_format = self.env.CPPLINT_OUTPUT
|
||||
cpplint_tool._cpplint_state.SetFilters(self.env.CPPLINT_FILTERS)
|
||||
cpplint_tool._SetOutputFormat(self.env.CPPLINT_OUTPUT)
|
||||
cpplint_tool._SetFilters(self.env.CPPLINT_FILTERS)
|
||||
cpplint_tool._line_length = self.env.CPPLINT_LINE_LENGTH
|
||||
cpplint_tool._root = self.env.CPPLINT_ROOT
|
||||
cpplint_tool.ProcessFile(self.inputs[0].abspath(), self.env.CPPLINT_LEVEL)
|
||||
|
|
Loading…
Reference in New Issue