Allow sourcing build info from a compile_commands.json #35

Open
opened 2026-10-08 12:43:30 -04:00 by kevintl1998 · 0 comments
Owner

For projects which use cmake or any other tool which can generate a compile_commands.json, allow creating configurations using an existing compile_commands.json.

This would be for other core configurator addons to use that data without having to parse it themselves.

Also allow combining the data from a specified compile_commands.json and configurations specified by the user to account for more complex (or convoluted) build systems.

Changes for this issue should include:

  • Reading from a compile_commands.json
  • Monitor changes to compile_commands.json
  • Caching the last read compile_commands.json
  • Generate a modified compile_commands.json based on the input file and configuration
  • explicitly check and error if the configuration points to a compile_commands.json in the project's root directory.
  • Optional: allow user to specify a command to generate the compile_commands.json
For projects which use cmake or any other tool which can generate a compile_commands.json, allow creating configurations using an existing compile_commands.json. This would be for other core configurator addons to use that data without having to parse it themselves. Also allow combining the data from a specified compile_commands.json and configurations specified by the user to account for more complex (or convoluted) build systems. Changes for this issue should include: - Reading from a compile_commands.json - Monitor changes to compile_commands.json - Caching the last read compile_commands.json - Generate a modified compile_commands.json based on the input file and configuration - explicitly check and error if the configuration points to a compile_commands.json in the project's root directory. - Optional: allow user to specify a command to generate the compile_commands.json
kevintl1998 changed title from Allow getting sources from a compile_commands.json to Allow sourcing build info from a compile_commands.json 2026-10-08 12:43:49 -04:00
kevintl1998 added this to the Release 2.0 milestone 2026-10-13 12:56:36 -04:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kevintl1998/yapp-clangd.nvim#35
No description provided.