[all-commits] [llvm/llvm-project] 439c92: [ASTMatchers] Fix bug in `hasUnaryOperand`

Yitzhak Mandelbaum via All-commits all-commits at lists.llvm.org
Wed Jun 16 13:19:31 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 439c9206945aba15d74d5bcaef3bf3f4d1e32b5e
      https://github.com/llvm/llvm-project/commit/439c9206945aba15d74d5bcaef3bf3f4d1e32b5e
  Author: Yitzhak Mandelbaum <yitzhakm at google.com>
  Date:   2021-06-16 (Wed, 16 Jun 2021)

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

  Log Message:
  -----------
  [ASTMatchers] Fix bug in `hasUnaryOperand`

Currently, `hasUnaryOperand` fails for the overloaded `operator*`. This patch fixes the bug and
adds tests for this case.

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




More information about the All-commits mailing list