[cfe-dev] Extracting Clang AST on Windows from Visual Studio solution
Daniel Dilts
diltsman at gmail.com
Thu Oct 2 15:05:25 PDT 2014
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.
On Thu, Oct 2, 2014 at 11:04 AM, Evgeny Karataev <karataev.evgeny at gmail.com>
wrote:
> Hello,
>
> 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:
>
> I am able to dump Clang AST for a single .c or .cpp file with following
> command in Windows command prompt:
> clang -cc1 -ast-dump -I path_to_MinWG_inlcude source_file.c >
> clang_ast_file.txt
>
> 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?
>
> Thank you for any help in advance.
>
> P.S.: If this is the wrong place to ask this question, please point me to
> the correct place. Thank you.
>
> Best Regards,
> Evgeny Karataev
>
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20141002/80501aed/attachment.html>
More information about the cfe-dev
mailing list