diff --git a/waflib/extras/cpplint.py b/waflib/extras/cpplint.py index 22bfc029..7916d2a5 100644 --- a/waflib/extras/cpplint.py +++ b/waflib/extras/cpplint.py @@ -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) -