[cfe-dev] How to generate compile_commands.json for clang?

Guangqing Chen via cfe-dev cfe-dev at lists.llvm.org
Sat Mar 30 00:05:30 PDT 2019


Hi,
I'm new to clang.
I follow the [get_started](https://clang.llvm.org/get_started.html) to
build clang (on linux).
However, if I add `-DCMAKE_EXPORT_COMPILER_COMMANDS` to the cmake command,
the resulted compile_commands.json only contains llvm related cpp.
What should I do to get that of clang?
Thanks for any help!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190330/2e142616/attachment.html>


More information about the cfe-dev mailing list