sammccall accepted this revision. sammccall added a comment. This revision is now accepted and ready to land.
Thanks for the changes, this looks great to me now. ================ Comment at: clang/docs/LibASTMatchersReference.html:8368 +lambdaExpr(hasAnyCapture(lambdaCapture(capturesVar(hasName("x")))), +capturesVar(hasName("x")) matches `int x` and `x = 1`. </pre></td></tr> ---------------- fowles wrote: > I think this should be "matches `x` and `x = 1` either that or `... hasName("x") matches ...` Maybe it's worth explicitly saying in the doc text something like "this can be a separate variable captured by value or reference, or a synthesized variable if the capture has an initializer". (There may end up being some confusion about the fact that these variables don't appear in AST dumps, but I don't think that's your problem to deal with here) Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D112491/new/ https://reviews.llvm.org/D112491 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits