ManyThreads / mcconf

McConf is a compile-time configuration management tool for extensible software families.
Other
2 stars 0 forks source link

mako template for compile_commands.json #23

Open rottaran opened 7 years ago

rottaran commented 7 years ago

http://clang.llvm.org/docs/JSONCompilationDatabase.html A couple of code analysis tools use this. For example https://code.woboq.org/

rottaran commented 5 years ago

This does not work with the current design. All of our make rules refer to many variables from the header of the makefile. The compilation database template would need the content of these variables, not just their name. Hence, we would need to integrate real processing of variables and rules in mcconf instead of leaving this to make.

=> Depends on issue #25 and #26.

Consider https://github.com/nickdiego/compiledb as alternative to generate the compilation database from the makefile when needed.