<div dir="ltr">You can download a Windows build of clang from <a href="http://llvm.org/builds/">http://llvm.org/builds/</a>. This will give you the option in Visual Studio of selecting LLVM/Clang as the tool chain. Since this is something along the lines of a plugin it likely doesn't work for the Express version of visual studio, but it will work for the Professional and higher versions.</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Oct 2, 2014 at 3:39 PM, Evgeny Karataev <span dir="ltr"><<a href="mailto:karataev.evgeny@gmail.com" target="_blank">karataev.evgeny@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 dir="ltr">Hello Daniel,<div><br></div><div>Thank you for your reply. I think ClangVSx project (<a href="https://github.com/ishani/ClangVSx" target="_blank">https://github.com/ishani/ClangVSx</a>) does exactly what you wrote.</div><div><br></div><div>I was just curious if you know if it is possible to substitute a wrapper around clang as c compiler in VS somehow?</div><div><br></div><div>Such approach works for me with makefile build setup. For example, this works:</div><div>make CC=path/to/clang_wrapper.bat</div><div><br></div><div>Where clang_wrapper.bat first runs clang with -ast-dump option and redirects it to a text file, and then runs clang normally to compile source code.</div><span><div><br></div><div>Thank you.</div><div>Best Regards,</div><div>Evgeny</div></span></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div>Best Regards,</div><div>Evgeny Karataev</div></div></div><div><div class="h5">
<br><div class="gmail_quote">On Thu, Oct 2, 2014 at 5:05 PM, Daniel Dilts <span dir="ltr"><<a href="mailto:diltsman@gmail.com" target="_blank">diltsman@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div dir="ltr">It is possible to write a Visual Studio plugin that uses the project/solution information to figure out the set of compile commands to build the project. At that point you could pass that information to clang and write the output to a file, stdout, etc.</div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Oct 2, 2014 at 11:04 AM, Evgeny Karataev <span dir="ltr"><<a href="mailto:karataev.evgeny@gmail.com" target="_blank">karataev.evgeny@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div><div><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>Hello,</div><div><br></div><div>I have posted the question below on the cfe-user mailing list, but didn't get any reply. So I posting it here in hope of any help:</div><div><br></div><div>I am able to dump Clang AST for a single .c or .cpp file with following command in Windows command prompt:</div><div>clang -cc1 -ast-dump -I path_to_MinWG_inlcude source_file.c > clang_ast_file.txt</div><div><br></div><div>My question is whether it is possible to extract Clang ASTs for all source files for all projects in a Visual Studio solution without transforming each project into makefile based build? </div><div><br></div><div>Thank you for any help in advance.</div><div><br></div><div>P.S.: If this is the wrong place to ask this question, please point me to the correct place. Thank you.</div><br clear="all"><div><div dir="ltr"><div>Best Regards,</div><div>Evgeny Karataev</div></div></div>
</div>
</div><br></div>
<br></div></div>_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">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>
<br></blockquote></div><br></div>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div>