def IsInitializerList(clean_lines, linenum):
 for i in xrange(linenum, 1, (-1)):
  line = clean_lines.elided[i]
  if (i == linenum):
   remove_function_body = Match('^(.*)\\{\\s*$', line)
   if remove_function_body:
    line = remove_function_body.group(1)
  if Search('\\s:\\s*\\w+[({]', line):
   return True
  if Search('\\}\\s*,\\s*$', line):
   return True
  if Search('[{};]\\s*$', line):
   return False
 return False

def IsInitializerList ( clean_lines , linenum ) : for i in xrange ( linenum , 1 , ( - 1 ) ) : line = clean_lines . elided [ i ] if ( i == linenum ) : remove_function_body = Match ( '^(.*)\\{\\s*$' , line ) if remove_function_body : line = remove_function_body . group ( 1 ) if Search ( '\\s:\\s*\\w+[({]' , line ) : return True if Search ( '\\}\\s*,\\s*$' , line ) : return True if Search ( '[{};]\\s*$' , line ) : return False return False
check if current line is inside constructor initializer list .