Files
Eric Li 60e5ecd043 [ASTMatchers] Fix matching CXXOperatorCallExpr of -> (#139994)
The `->` operator does not have a corresponding `UnaryOperatorKind`, and
so was unsupported by the `hasOperatorName` and `hasUnaryOperand`
matchers.

Instead of trying to determine the equivalent unary or binary operator
and then deriving the opcode string, we consult `OperatorKinds.def`
directly (through `getOperatorSpelling`).

For `hasUnaryOperand` support, we special case the arrow operator
specifically.
2025-05-22 10:32:28 -04:00
..