<div dir="ltr"><div>Hi Artem!</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 3, 2020 at 9:36 AM Artem Dergachev via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
In other news - did you ever consider using ASTImporter for generating <br>
function body ASTs from hand-written code? Like BodyFarms but without <br>
constructing the AST by hand. <br></blockquote><div><br></div><div>I actually worked on something similar to this in 2014 :) </div><div>While the thing I came up with is rather limited, it did work for some cases.<br>See <a href="https://github.com/llvm/llvm-project/blob/master/clang/test/Analysis/model-file.cpp">https://github.com/llvm/llvm-project/blob/master/clang/test/Analysis/model-file.cpp</a> for an example use.</div><div>I think it should not be that hard to extend this using the ASTImporter.</div><div><br></div><div>Cheers,</div><div>Gabor</div><div><br></div><div><br></div><div> </div></div></div>