[all-commits] [llvm/llvm-project] c0b298: Add `LambdaCapture`-related matchers.

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Mon Nov 8 10:52:08 PST 2021


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

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

  Log Message:
  -----------
  Add `LambdaCapture`-related matchers.

This provides better support for `LambdaCapture`s by making them first-
class and allowing them to be bindable. In addition, this implements several
`LambdaCapture`-related matchers. This does not update how lambdas are
traversed. As a result, something like trying to match `lambdaCapture()` by
itself will not work - it must be used as an inner matcher.

Reviewed By: aaron.ballman, sammccall

Differential Revision: https://reviews.llvm.org/D112491




More information about the All-commits mailing list