<div dir="ltr">I would like to manipulate the AST from a C++ source code from a Java application. As far as I know there are no good and open source methods to get a detailed AST from C++ in Java.<div><br></div><div>May it be that clang (as it happens in gcc) try to discourage people to work with the AST outside llvm tools because of uninteded license use fears?</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 6, 2016 at 1:53 PM, mats petersson <span dir="ltr"><<a href="mailto:mats@planetcatfish.com" target="_blank">mats@planetcatfish.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><div>What do you want to "do" with the file generated? In general, I would have thought the tools provided by Clang would be more suitable than trying to parse the output from clang with this option - it's more of a tool to debug the compiler than something intended to use for further processing. Clang already comes with several sets of tools for reformatting, modifying/matching code patterns, etc.<br><br></div>I'm also copying the reply to "cfe-dev" that is the mailing list for Clang and related tools, rather than the llvm-dev, which is the mailing list for the LLVM part of the clang+llvm set of tools/products.<br><br>--<br></div>Mats<br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 6 April 2016 at 11:26, David Castells Rufas via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Dear all,<div><br></div><div>I'm new to the mailing list.</div><div><br></div><div>I'm trying to find the file format description of the AST files generated with </div><div>>clang -emit-ast ...</div><div><br></div><div><br></div><div>Could you give me any pointer? Thanks</div></div>
<br></div></div>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>