Hacker News new | ask | show | jobs
by rasjani 3287 days ago
Compile commands ? Please Yes?
3 comments

There is also a tool called Bear which will generate compile commands from Make-based builds, in case you were wondering. I've used it with some success.

https://github.com/rizsotto/Bear

Im well aware of bear. Works fine in some cases, not so well in others. Author is also doing scan-build replacement in python which imho is far superior to bear.
Yes, we support Compile Commands :)
What are compile commands?
A Compile Command is a JSON file entry that specifies what the C/C++ compiler should do when compiling a file. So it defines a file to compile and all the required flags (like include paths or preprocessor defines). These Compile Commands are used for all kind of Clang based tools. You can read more here: https://clang.llvm.org/docs/JSONCompilationDatabase.html