fix parse_cpp_function
extract name of function and return type