From 1895ea386ca78573302483f589ebabd8ce1480e7 Mon Sep 17 00:00:00 2001 From: Brian Carlstrom Date: Thu, 18 Jul 2013 13:28:37 -0700 Subject: Fix cpplint readability/fn_size issues Change-Id: I1efdb07a948a2af49db1a9d21ccab16dacc03a54 --- tools/cpplint.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tools/cpplint.py') diff --git a/tools/cpplint.py b/tools/cpplint.py index da5a938fd3..4f069b77ad 100755 --- a/tools/cpplint.py +++ b/tools/cpplint.py @@ -645,6 +645,11 @@ class _FunctionState(object): filename: The name of the current file. linenum: The number of the line to check. """ + # BEGIN android-added + if not self.in_a_function: + return + # END android-added + if Match(r'T(EST|est)', self.current_function): base_trigger = self._TEST_TRIGGER else: -- cgit v1.2.3-59-g8ed1b