clint: allow starting brace after enum

This commit is contained in:
Justin M. Keyes
2017-08-05 21:10:21 +02:00
parent efb0aca0ee
commit 30996359ef
2 changed files with 2 additions and 2 deletions

View File

@@ -2613,7 +2613,8 @@ def CheckBraces(filename, clean_lines, linenum, error):
func_start_linenum += 1
else:
if clean_lines.lines[func_start_linenum].endswith('{'):
func_start = clean_lines.lines[func_start_linenum]
if not func_start.startswith('enum ') and func_start.endswith('{'):
error(filename, func_start_linenum,
'readability/braces', 5,
'Brace starting function body must be placed '