jacobdufault / cquery

C/C++ language server supporting multi-million line code base, powered by libclang. Emacs, Vim, VSCode, and others with language server protocol support. Cross references, completion, diagnostics, semantic highlighting and more

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Question] Is there any solution that cquery can work with makefile?

tan-wei opened this issue · comments

Firstly, I would say that cquery works quite well with CMake, VSCode with CMake-tools. Thanks for compile_commands.json which is generated by CMake, cquery can parse all source files we want to parse.
However, I have a question about some projects with Makefiles. We can not get compile_commands.json automaticly from Makefile (AFAK. If we can, the problem solved), what can we do to make cquery parsre all source codes? Maybe write a ".cquery" file by hand is a solution. Any other possible convenient way?
Thanks very much for this fabulous project.

Sorry for my missing reading about the related details. 'compiledb' can be used to so.
But what about SCons project?

I have ask the question form SCons poject, it seems that in the future SCons will suppiort compile_commands.json.