[PATCH] D72414: Add new AST matcher `hasAnyCapture`

Reid via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 10 10:33:06 PST 2020


rhiro updated this revision to Diff 237389.
rhiro added a comment.

Fixed the condition for the varDecl case and made the cxxThisExpr more concise.

- Condition on `capturesVariable` instead of `capturesThis` and switch the loop in the cxxThisExpr overload to use llvm::any_of instead of an explicit loop.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72414

Files:
  clang/docs/LibASTMatchersReference.html
  clang/include/clang/ASTMatchers/ASTMatchers.h
  clang/lib/ASTMatchers/Dynamic/Registry.cpp
  clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72414.237389.patch
Type: text/x-patch
Size: 8307 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200110/793d53ff/attachment.bin>


More information about the cfe-commits mailing list