libclang: binary/unary operator spelling

Markus Lottmann via cfe-commits cfe-commits at lists.llvm.org
Mon Aug 22 16:07:49 PDT 2016


Hello,

this is my first patch proposal so please for give me if i made some 
mistakes.

This patch changes the result of clang_getCursorSpelling in the way that 
it returns the operator for 
CXCursor_BinaryOperator/CXCursor_UnaryOperator instead of an empty string.
So e.g. for a + b it returns: +

I would like to know if such a change is welcome or if maybe the
current behavior is intended in a way i failed to perceive.

If yes i would provide a patch which also includes updated tests.

Best Regards,
Markus Lottmann
-------------- next part --------------
A non-text attachment was scrubbed...
Name: binary_unary_spelling.patch
Type: text/x-diff
Size: 806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160823/54ff08e7/attachment.patch>


More information about the cfe-commits mailing list