[all-commits] [llvm/llvm-project] ecf696: [ASTMatchers] Allow use of mapAnyOf in more contexts

Stephen Kelly via All-commits all-commits at lists.llvm.org
Tue Jan 19 14:15:01 PST 2021


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ecf696641e6ce4b22e8c8ea3c7476b9c1f0f200b
      https://github.com/llvm/llvm-project/commit/ecf696641e6ce4b22e8c8ea3c7476b9c1f0f200b
  Author: Stephen Kelly <steveire at gmail.com>
  Date:   2021-01-19 (Tue, 19 Jan 2021)

  Changed paths:
    M clang/include/clang/ASTMatchers/ASTMatchersInternal.h
    M clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp

  Log Message:
  -----------
  [ASTMatchers] Allow use of mapAnyOf in more contexts

Add an operator overload to ArgumentAdaptingMatcherFunc to allow use of
mapAnyOf within hasAncestor, hasParent etc.

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




More information about the All-commits mailing list