def IsDerivedFunction(clean_lines, linenum):
 for i in xrange(linenum, max((-1), (linenum - 10)), (-1)):
  match = Match('^([^()]*\\w+)\\(', clean_lines.elided[i])
  if match:
   (line, _, closing_paren) = CloseExpression(clean_lines, i, len(match.group(1)))
   return ((closing_paren >= 0) and Search('\\boverride\\b', line[closing_paren:]))
 return False

def IsDerivedFunction ( clean_lines , linenum ) : for i in xrange ( linenum , max ( ( - 1 ) , ( linenum - 10 ) ) , ( - 1 ) ) : match = Match ( '^([^()]*\\w+)\\(' , clean_lines . elided [ i ] ) if match : ( line , _ , closing_paren ) = CloseExpression ( clean_lines , i , len ( match . group ( 1 ) ) ) return ( ( closing_paren >= 0 ) and Search ( '\\boverride\\b' , line [ closing_paren : ] ) ) return False
check if current line contains an inherited function .