emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
617 stars 162 forks source link

C/C++ completion: libclang configuration generation for irony-mode and ycmd #552

Open vspinu opened 6 years ago

vspinu commented 6 years ago

Would be great to be able to generate configuration files for C/C++ completion engines irony and ycmd. See also this tutorial.

Both of them rely on libclang and likely making one of them work would trivially translate to another. If my understanding is correct we need to hack into R's CMD install and retrieve the compilation flags as R would do it.

This looks like a good feature for our ess-r-package.el. Maybe ess-r-package-generate-libclang-configs.

Related xref for C/C++ issue #499

vspinu commented 6 years ago

A few useful pointers from @kevinushey (thanks!) who developed similar support for Rstudio based on libclang: