owenpan added a comment.

In D124589#3479241 <https://reviews.llvm.org/D124589#3479241>, @curdeius wrote:

> Looks more or less correct, but I am afraid that this change may misbehave in 
> some rare cases.
> Consider `*[](auto *x) { return x; }();`, so an immediately invoked lambda 
> returning a pointer.
> It seems to be correctly formatted currently, but I don't see any test on it.
> Could you add a test for this please?

Good catch!


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D124589/new/

https://reviews.llvm.org/D124589

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to