cquery-project / emacs-cquery

Emacs client for cquery, a low-latency language server supporting multi-million line C++ code-bases
116 stars 14 forks source link

Preprocesssed file #22

Closed myrgy closed 6 years ago

myrgy commented 6 years ago

It might be great to have function to show preprocessed translation unit. I know that I can ask compiler to do that, but it would be more convinient to do that via cquery. Seems like rtags has this feature.

MaskRay commented 6 years ago

I think this can be implemented based on:

(ht-get (cquery-file-info) "args")
MaskRay commented 6 years ago

commit a458d45e680c211ae97368020d48aaff6d451c17

I don't know how to make it work on a region as rtags-preprocess-file supports..

myrgy commented 6 years ago

Full file is fine for me! Thanks a lot!