diff options
| author | Eric Li <li.zhe.hua@gmail.com> | 2025-05-22 10:32:28 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-22 10:32:28 -0400 |
| commit | 60e5ecd0431c0c62574f063f509dd3dd31cb0647 (patch) | |
| tree | fa2df6452cf6bde0f6570fc9d8df7109bde938b8 /lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h | |
| parent | e9cba3c8edca3dc805e82afbb482b3938cb96ae2 (diff) | |
[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.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/Interfaces/ScriptedPythonInterface.h')
0 files changed, 0 insertions, 0 deletions
