diff options
author | 2013-07-18 13:28:37 -0700 | |
---|---|---|
committer | 2013-07-18 14:38:27 -0700 | |
commit | 1895ea386ca78573302483f589ebabd8ce1480e7 (patch) | |
tree | d8c2d27ac746f29c8248fe17fd6b8e9872556fc4 /tools/cpplint.py | |
parent | 3e3d591f781b771de89f3b989830da2b6ac6fac8 (diff) |
Fix cpplint readability/fn_size issues
Change-Id: I1efdb07a948a2af49db1a9d21ccab16dacc03a54
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: |