def ExpectingFunctionArgs(clean_lines, linenum):
 line = clean_lines.elided[linenum]
 return (Match('^\\s*MOCK_(CONST_)?METHOD\\d+(_T)?\\(', line) or ((linenum >= 2) and (Match('^\\s*MOCK_(?:CONST_)?METHOD\\d+(?:_T)?\\((?:\\S+,)?\\s*$', clean_lines.elided[(linenum - 1)]) or Match('^\\s*MOCK_(?:CONST_)?METHOD\\d+(?:_T)?\\(\\s*$', clean_lines.elided[(linenum - 2)]) or Search('\\bstd::m?function\\s*\\<\\s*$', clean_lines.elided[(linenum - 1)]))))

def ExpectingFunctionArgs ( clean_lines , linenum ) : line = clean_lines . elided [ linenum ] return ( Match ( '^\\s*MOCK_(CONST_)?METHOD\\d+(_T)?\\(' , line ) or ( ( linenum >= 2 ) and ( Match ( '^\\s*MOCK_(?:CONST_)?METHOD\\d+(?:_T)?\\((?:\\S+,)?\\s*$' , clean_lines . elided [ ( linenum - 1 ) ] ) or Match ( '^\\s*MOCK_(?:CONST_)?METHOD\\d+(?:_T)?\\(\\s*$' , clean_lines . elided [ ( linenum - 2 ) ] ) or Search ( '\\bstd::m?function\\s*\\<\\s*$' , clean_lines . elided [ ( linenum - 1 ) ] ) ) ) )
checks whether where function type arguments are expected .