UnaryOperator spelling empty, opcode not exposed to Python bindings
Open
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
Assessment
This issue has not been assessed yet.