sighingnow / libclang

(Unofficial) Release libclang (clang.cindex) on pypi.
https://pypi.org/project/libclang
Other
81 stars 21 forks source link

Cursor.spelling is not working incase of the CursorKind is BINARY_OPERATOR #64

Open Romisajad opened 8 months ago

Romisajad commented 8 months ago

When the cursor is pointing to any Binary Operator for example like ( + or = ). The spelling property of the Cursor class is not working. It is not returning the Operator. As you can see in the following screenshots that i have tried to printout the cursor.spelling but for that it returns nothing and the numbers are the location line number. I have provided the code and the output of the problem. code code1

sighingnow commented 3 months ago

It is a known limitation of libclang itself.