emacs-lsp / emacs-ccls

Emacs client for ccls, a C/C++ language server
200 stars 29 forks source link

Automating the generation of compile_commands.json #28

Closed Compro-Prasad closed 5 years ago

Compro-Prasad commented 5 years ago

Doing this will help in getting started with LSP easily. A command to do this would be enough. I think this can be done with the help of projectile and/or project.el. By asking the user questions about the command to run to generate the compile_commands.json from project root.

MaskRay commented 5 years ago

compile_commands.json should not be generated automatically.

proj
 Debug
  compile_commands.json
  generate.h        # this belongs to proj, not proj/Debug 
 compile_commands.json -> Debug/compile_commands.json