Open Thaodan opened 1 year ago
see https://github.com/MaskRay/ccls/wiki/Project-Setup#compile_commandsjson you should be able to use compilationDatabaseDirectory
something like this https://github.com/MaskRay/ccls/wiki/Visual-Studio-Code#cclsmisccompilation databasedirectory ?
Yes exactly. Can this be more generalized or has this to be supported by each editor plugin?
Observed behavior
When a project uses out of tree builds like in a ./build/. directory inside the project folder compile_commands.json are not in the project folder but in that folder. How should such use cases be handled?
Expected behavior
ccls would describe what is the project root, the build folder or the actual project root or handle projects with out of tree build folders.
Steps to reproduce
Generate a project that uses an out of tree build. Like for cmake with Cmake: