[cfe-dev] [Analyzer][RFC] Function Summaries

Gábor Horváth via cfe-dev cfe-dev at lists.llvm.org
Mon Feb 3 10:19:06 PST 2020


Hi Artem!

On Mon, Feb 3, 2020 at 9:36 AM Artem Dergachev via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

>
> In other news - did you ever consider using ASTImporter for generating
> function body ASTs from hand-written code? Like BodyFarms but without
> constructing the AST by hand.
>

I actually worked on something similar to this in 2014 :)
While the thing I came up with is rather limited, it did work for some
cases.
See
https://github.com/llvm/llvm-project/blob/master/clang/test/Analysis/model-file.cpp
for
an example use.
I think it should not be that hard to extend this using the ASTImporter.

Cheers,
Gabor
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200203/871623af/attachment-0001.html>


More information about the cfe-dev mailing list