Check `env.CPPLINT_SKIP` after `options` are converted to `env`s #1953

This commit is contained in:
Akira Baruah 2017-04-25 20:17:27 -07:00 committed by ita1024
parent 6e5baffd47
commit 3f15e5e2c8
1 changed files with 3 additions and 4 deletions

View File

@ -194,9 +194,6 @@ def cpplint_includes(self, node):
@TaskGen.feature('cpplint')
@TaskGen.before_method('process_source')
def post_cpplint(self):
if self.env.CPPLINT_SKIP:
return
if not self.env.CPPLINT_INITIALIZED:
for key, value in Options.options.__dict__.items():
if not key.startswith('CPPLINT_') or self.env[key]:
@ -204,6 +201,9 @@ def post_cpplint(self):
self.env[key] = value
self.env.CPPLINT_INITIALIZED = True
if self.env.CPPLINT_SKIP:
return
if not self.env.CPPLINT_OUTPUT in CPPLINT_RE:
return
@ -216,4 +216,3 @@ def post_cpplint(self):
self.bld.fatal('Could not find %r' % src)
self.create_task('cpplint', node)