[cfe-dev] How to know in what CXXRecordDecl is a Stmt?

Manuel Klimek klimek at google.com
Thu Apr 10 01:48:50 PDT 2014


ASTContext (http://clang.llvm.org/doxygen/classclang_1_1ASTContext.html)
has a getParents() method. Note that you'll not always end up in a
CXXRecordDecl - sometimes you'll also end up in a method decl that is
defined out-of-line.


On Thu, Apr 10, 2014 at 9:40 AM, victor <pedretti_86 at hotmail.com> wrote:

> Hello,
>
> When I retrieve a Stmt in the AST, how can I know the CXXRecordDel to
> which that Stmt belongs to? I have been looking over the methods in the
> Stmt class, but I couldn't find an appropriate method to this end.
>
> Thanks in advance.
>
> _______________________________________________
> 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/20140410/842fee38/attachment.html>


More information about the cfe-dev mailing list