llvm / llvm/llvm-project

UnaryOperator spelling empty, opcode not exposed to Python bindings

Open
#174,989 0 comments 0 reactions 0 assignees View on GitHub
clang:as-a-library
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

https://github.com/llvm/llvm-project/pull/98489 fixes `BinaryOperator` by adding the opcode (`+`, `=`, etc.) to the spelling and making it available to Python bindings via new property `clang.cindex.cursor.binary_operator`.

Analogous work still has to be done for `UnaryOperator`, as there is still no way to distinguish e.g. `&x` from `*x` or `+x`.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.