Rcpp::function for clang