[PATCH] Mark lambda closure classes as being implicitly-generated.

James Dennett jdennett at google.com
Wed Sep 4 15:38:41 PDT 2013


On Wed, Sep 4, 2013 at 3:23 PM, Jordan Rose <jordan_rose at apple.com> wrote:
>
>   If you declare a class inside the lambda body, does that get reached by the visitor? That seems important.

I believe so; TraverseLambdaExpr explicitly traverses the lambda's
body (and doesn't care that the closure type is implicit).  Roughly,
the visitor tries to follow the explicit code hierarchy, even though
that means reaching inside some implicit code.

Visiting the implicit code could well result in visiting various code
twice unless we take measures to avoid that.



More information about the cfe-commits mailing list