You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[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.
0 commit comments