def CheckSectionSpacing(filename, clean_lines, class_info, linenum, error):
 if (((class_info.last_line - class_info.starting_linenum) <= 24) or (linenum <= class_info.starting_linenum)):
  return
 matched = Match('\\s*(public|protected|private):', clean_lines.lines[linenum])
 if matched:
  prev_line = clean_lines.lines[(linenum - 1)]
  if ((not IsBlankLine(prev_line)) and (not Search('\\b(class|struct)\\b', prev_line)) and (not Search('\\\\$', prev_line))):
   end_class_head = class_info.starting_linenum
   for i in range(class_info.starting_linenum, linenum):
    if Search('\\{\\s*$', clean_lines.lines[i]):
     end_class_head = i
     break
   if (end_class_head < (linenum - 1)):
    error(filename, linenum, 'whitespace/blank_line', 3, ('"%s:" should be preceded by a blank line' % matched.group(1)))

def CheckSectionSpacing ( filename , clean_lines , class_info , linenum , error ) : if ( ( ( class_info . last_line - class_info . starting_linenum ) <= 24 ) or ( linenum <= class_info . starting_linenum ) ) : return matched = Match ( '\\s*(public|protected|private):' , clean_lines . lines [ linenum ] ) if matched : prev_line = clean_lines . lines [ ( linenum - 1 ) ] if ( ( not IsBlankLine ( prev_line ) ) and ( not Search ( '\\b(class|struct)\\b' , prev_line ) ) and ( not Search ( '\\\\$' , prev_line ) ) ) : end_class_head = class_info . starting_linenum for i in range ( class_info . starting_linenum , linenum ) : if Search ( '\\{\\s*$' , clean_lines . lines [ i ] ) : end_class_head = i break if ( end_class_head < ( linenum - 1 ) ) : error ( filename , linenum , 'whitespace/blank_line' , 3 , ( '"%s:" should be preceded by a blank line' % matched . group ( 1 ) ) )
checks for additional blank line issues related to sections .