<div style="font-family: arial, helvetica, sans-serif"><font size="2"><div class="gmail_quote">On Tue, Jun 19, 2012 at 9:15 AM, Stephen Kelly <span dir="ltr"><<a href="mailto:steveire@gmail.com" target="_blank">steveire@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Manuel Klimek wrote:<br>
<br>
> On Tue, Jun 12, 2012 at 12:11 PM, Chandler Carruth<br>
> <<a href="mailto:chandlerc@google.com">chandlerc@google.com</a>>wrote:<br>
><br>
>> On Tue, Jun 12, 2012 at 1:13 AM, David Röthlisberger<br>
>> <<a href="mailto:david@rothlis.net">david@rothlis.net</a>>wrote:<br>
>><br>
>>> Could we please have some documentation on the format of the<br>
>>> compile_commands.json? (Manuel?).<br>
>><br>
>><br>
>> Just wanted to second this. I actually wanted to cite just such<br>
>> documentation in a new design proposal I'm about to mail out... =D<br>
>><br>
><br>
> Committed as r158365.<br>
> <a href="http://clang.llvm.org/docs/JSONCompilationDatabase.html" target="_blank">http://clang.llvm.org/docs/JSONCompilationDatabase.html</a><br>
><br>
> Feeback or patches welcome :)<br>
><br>
> Cheers,<br>
> /Manuel<br>
<br>
</div>The tooling doesn't seem to handle relative paths very well.<br>
<br>
If I have the directory /foo/bar and a build directory /foo/bar/build, and<br>
the compile_commands.json contains entries like "../blub.cpp", the tooling<br>
seems to not find the entry for blub.cpp.<br>
<br>
I fixed that for the Ninja generator in CMake here:<br>
<br>
<a href="http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e30d46e20ee71d57e09f83fafa39b7e464efe110" target="_blank">http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=e30d46e20ee71d57e09f83fafa39b7e464efe110</a><br>
<br>
but I think this might be a bug in clang (recall I brought up relative paths<br>
troubles yesterday too :)).<br></blockquote><div><br></div><div>Awesome, thanks. Also, feel free to file bugs and assign them to me - it might well be a problem in the tooling layer, I'm aware I haven't it tested too well for the relative path edge cases...</div>
<div><br></div><div>Cheers,</div><div>/Manuel</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Thanks,<br>
<br>
Steve.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></font></div>