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

Is it possible to get compilation arguments / flags from emacs cquery? #17

Closed alexmurray closed 6 years ago

alexmurray commented 6 years ago

I currently maintain flycheck-clang-analyzer which allows to run the clang static analysis using the current files compilation options via either irony or rtags. It would be great to add support for using cquery as well - is there a way to call into emacs-cquery to get the compilation flags etc for the current file?

jacobdufault commented 6 years ago

Sure, we can expose a custom LSP message. Can you file a bug in the main cquery repository as well?

MaskRay commented 6 years ago

Close via 122f4f7d61594762520864f323bd83ee26b8b255

(gethash "args" (cquery-file-info))
alexmurray commented 6 years ago

Wow, thank you for the very quick response and implementation - truly amazing!