<div dir="ltr">AFAIK nobody implemented json compile command output for Windows yet (back in the days when I implemented it, clang was so unusable on windows that nobody cared). So, currently, your approach with scrapping the compile commands from the visual studio make files seems a way to go.<div>
<br></div><div>The next thing we'll need is to be able to translate cl.exe command line options to clang's. One way to do this is to use the ArgumentAdjuster to replace the cl.exe flags with the corresponding clang flags - again, somebody would need to implement this.</div>
<div><br></div><div>If nobody beats us to it, at some point we'll most certainly get there, but currently, it's not too high on our priority list. Thus, patches welcome :)</div><div><br></div><div>Cheers,</div><div>
/Manuel</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Aug 13, 2013 at 11:02 AM, Richard <span dir="ltr"><<a href="mailto:legalize@xmission.com" target="_blank">legalize@xmission.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
In article <CACs=ty+Bzw=<a href="mailto:1ZdNYhBRmSBDqt_y_O19dFd1Rb%2BhKj8EohZBykQ@mail.gmail.com">1ZdNYhBRmSBDqt_y_O19dFd1Rb+hKj8EohZBykQ@mail.gmail.com</a>>,<br>
<div class="im"> Reid Kleckner <<a href="mailto:rnk@google.com">rnk@google.com</a>> writes:<br>
<br>
> On Tue, Aug 13, 2013 at 12:08 AM, Richard <<a href="mailto:legalize@xmission.com">legalize@xmission.com</a>> wrote:<br>
><br>
> > > What generator (-G) are you using?<br>
> ><br>
> > When I originally created the build structure, I generated VS 2012<br>
> > project files.<br>
><br>
><br>
> Searching the CMake source, I only see mentions of<br>
> CMAKE_EXPORT_COMPILE_COMMANDS in the make and ninja generators. The<br>
> feature is probably unimplemented for Visual Studio project files.<br>
<br>
</div>OK, I'm a little confused. The page that explains how to generate<br>
this json file doesn't mention anything about generators or -G.<br>
<br>
Are the directions on the page simply assuming somethign that isn't true<br>
in this case?<br>
<div class="im"><br>
> ninja works fairly well with the MSVC toolchain so you could try that.<br>
<br>
</div>I don't need to actually change the way I'm building the code -- I<br>
still want VS projects for building the code. I just need to create<br>
this JSON file.<br>
<br>
As I understand it, this JSON file feeds clang all the necessary<br>
include search paths and relevant preprocessor symbol definitions in<br>
order to properly interpret the source code in a particular<br>
compilation context.<br>
<div class="HOEnZb"><div class="h5">--<br>
"The Direct3D Graphics Pipeline" free book <<a href="http://tinyurl.com/d3d-pipeline" target="_blank">http://tinyurl.com/d3d-pipeline</a>><br>
The Computer Graphics Museum <<a href="http://computergraphicsmuseum.org" target="_blank">http://computergraphicsmuseum.org</a>><br>
The Terminals Wiki <<a href="http://terminals.classiccmp.org" target="_blank">http://terminals.classiccmp.org</a>><br>
Legalize Adulthood! (my blog) <<a href="http://legalizeadulthood.wordpress.com" target="_blank">http://legalizeadulthood.wordpress.com</a>><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></div>