diff options
Diffstat (limited to 'tools/cpplint.py')
-rwxr-xr-x | tools/cpplint.py | 5 |
1 files changed, 5 insertions, 0 deletions
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: |