Skip to content

Generate and ship compilation database

Problem to solve

Some language servers require a compilation database to properly function.

This database is generated as a JSON file. The format specification can be found in: https://clang.llvm.org/docs/JSONCompilationDatabase.html

As we are using CMake we only have to specify the option CMAKE_EXPORT_COMPILE_COMMANDS and the file will be automatically generated.

Stakeholders

  • CTA Dev Team

Proposal

  • Generate the compilation database
  • Add the compilation database to the repository and have an automated job that updates the file when there is a change in the build.
Edited by Pablo Oliver Cortes