Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] cmake support how to integrate the compile_commands.json parser into CDT

Well, currently all these parts, such as the "server" and "front-end", are managed from the IDE.
For example if user adds the source file - it needs to be added to json as well, and we need to guess the commands for this new unit, and for this we need to know how the surrounding units are configured.

Regards,
AF

16.06.2020 21:33, Jonah Graham пишет:
On Tue, 16 Jun 2020 at 14:18, Alexander Fedorov <alexander.fedorov@xxxxxxxxxx> wrote:
Yes, LSP people do need the access to "compilation database", either to a parser directly or better to a service that can query compile_command.json


Thanks Alexander. Can you expand on this please? When using LSP, what does the front-end need to read from compile_commands.json? AFAIU the language server needs to read the compile_commands.json file itself, so what additional stuff does the IDE need to read? Perhaps I am misunderstanding how this works?

Thanks
Jonah

 


_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/cdt-dev


Back to the top