[all-commits] [llvm/llvm-project] 9809c6: Add `isInitCapture` and `forEachLambdaCapture` mat...

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Mon Nov 15 14:55:50 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9809c6c61cebbfcd100a3afd30fc9009f68d4678
      https://github.com/llvm/llvm-project/commit/9809c6c61cebbfcd100a3afd30fc9009f68d4678
  Author: James King <jamescking at google.com>
  Date:   2021-11-15 (Mon, 15 Nov 2021)

  Changed paths:
    M clang/docs/LibASTMatchersReference.html
    M clang/include/clang/ASTMatchers/ASTMatchers.h
    M clang/lib/ASTMatchers/Dynamic/Registry.cpp
    M clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
    M clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp

  Log Message:
  -----------
  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




More information about the All-commits mailing list