[cfe-dev] Finding function declaration?

Nikola Smiljanic popizdeh at gmail.com
Sun May 10 14:49:20 PDT 2015


I think you'll need to use ParentMap from ASTContext.

On Mon, May 11, 2015 at 4:18 AM, Ben Laurie <benl at google.com> wrote:

> If I have a checker for check::PreStmt<ReturnStmt>, how do I get from
> the ReturnStmt to the function it is part of (I want to check
> attributes on that function)?
> _______________________________________________
> 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/20150511/9ac63172/attachment.html>


More information about the cfe-dev mailing list