[cfe-dev] How to generate compile_commands.json for clang?
Guangqing Chen via cfe-dev
cfe-dev at lists.llvm.org
Mon Apr 1 06:24:33 PDT 2019
I remove CMakeCache.txt and try again
it works :)
Thanks for your reply.
However, my YCM still not work in clang's cpp even with
'HTTPConnectionPool(): Read timed out. (read timeout=30)'
(my YCM work well in llvm's cpp with compile_commands.json)
Ilya Biryukov <ibiryukov at google.com> 于2019年4月1日周一 下午5:48写道：
> Hi Guangqing,
> Does 'ninja clang' (or 'make clang') produce any results?
> Did you specify '-DLLVM_ENABLE_PROJECTS=clang' in your initial CMake run?
> On Sun, Mar 31, 2019 at 6:04 PM Guangqing Chen via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>> 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!
>> cfe-dev mailing list
>> cfe-dev at lists.llvm.org
> Ilya Biryukov
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev