aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xclint.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/clint.py b/clint.py
index 01d179a3f7..13d2d8cbe9 100755
--- a/clint.py
+++ b/clint.py
@@ -2307,7 +2307,8 @@ def CheckBraces(filename, clean_lines, linenum, error):
'TEST', 'TEST_F', 'MATCHER', 'MATCHER_P', 'TYPED_TEST',
'EXCLUSIVE_LOCKS_REQUIRED', 'SHARED_LOCKS_REQUIRED',
'LOCKS_EXCLUDED', 'INTERFACE_DEF')) or
- Search(r'\s+=\s*$', line_prefix)):
+ Search(r'\s+=\s*$', line_prefix) or
+ Search(r'^\s*return\s*$', line_prefix)):
match = None
else: