<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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>_______________________________________________<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>
<br></blockquote></div><br></div>