Add `isInitCapture` and `forEachLambdaCapture` matchers.
authorJames King <jamescking@google.com>
Mon, 15 Nov 2021 18:56:22 +0000 (18:56 +0000)
committerYitzhak Mandelbaum <yitzhakm@google.com>
Mon, 15 Nov 2021 22:55:28 +0000 (22:55 +0000)
commit9809c6c61cebbfcd100a3afd30fc9009f68d4678
tree515c21e0ba8ac002f69a3fde5a45c675117ba200
parent0b5051cedec487f2e611ec2b582df6c23f90a046
Add `isInitCapture` and `forEachLambdaCapture` matchers.

This contributes follow-up work from https://reviews.llvm.org/D112491, which
allows for increased control over the matching of lambda captures. This also
updates the documentation for the `lambdaCapture` matcher.

Reviewed By: ymandel, aaron.ballman

Differential Revision: https://reviews.llvm.org/D113575
clang/docs/LibASTMatchersReference.html
clang/include/clang/ASTMatchers/ASTMatchers.h
clang/lib/ASTMatchers/Dynamic/Registry.cpp
clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp