[PATCH] D112491: Add `LambdaCapture`-related matchers.

Matt Kulukundis via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Nov 1 10:48:07 PDT 2021


fowles added a comment.

This is great!



================
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>
----------------
I think this should be "matches `x` and `x = 1`


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112491



More information about the cfe-commits mailing list