[cfe-dev] How to bind the entry point of a CFG

Kristóf Umann via cfe-dev cfe-dev at lists.llvm.org
Tue Oct 29 04:36:58 PDT 2019


Hi!

You can retrieve the entry point of a CFG with the getEnty() method.
https://clang.llvm.org/doxygen/classclang_1_1CFG.html#a376a2e0d1a66a46f6514fe9b863f1f52
Could
elaborate on what you'd like to achieve?

Cheers,
Kristóf

On Sun, 27 Oct 2019 at 08:14, Ijaz Ahmed via cfe-dev <cfe-dev at lists.llvm.org>
wrote:

> Dear Member,
> I am new to clang framework. I am trying to bind the entry points of CFG
> by using below code.
>
> StatementMatcher BBlock= CFGBlock(expr().bind("entrypoint"));
>
>
> The code giving me errors. Please guide me, how can I bind entry and exit
> points of CFG of a program.
>
> Regards
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at lists.llvm.org
> https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20191029/0bfa59b3/attachment.html>


More information about the cfe-dev mailing list