Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Mulitple compilationDatabaseDirectory #112

Open
Volker-Weissmann opened this issue Nov 26, 2020 · 1 comment
Open

Feature request: Mulitple compilationDatabaseDirectory #112

Volker-Weissmann opened this issue Nov 26, 2020 · 1 comment

Comments

@Volker-Weissmann
Copy link

Hello,

I have a project that produces multiple compilation_commands.json files in different folders.
It would be nice if I could set compilationDatabaseDirectory to a list of directories and ccls would read every compilation_commands.json file inside these folders. (Assuming that no *.cpp file has an entry in multiple compilation_commands.json files)

@olesenm
Copy link

olesenm commented Nov 27, 2020

This would indeed be helpful. Note sure if this is already documented somewhere (haven't read any docs), but for the situation that Volker describes it could also be very handy to somehow support meta-variables for the roots as well.
The use case would be generating the cache at build time and distributing the compiled package, including the cache. At the moment the cache information contains absolute paths that reflect the original build location.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants