[PATCH] Add to libclang: get operator OpCode, print operator, print literal as it apeared in code, get of For-loop Init, Cond, Inc and Body parts

Алексей Ковалевский morskoyzmey at gmail.com
Mon Apr 28 09:41:22 PDT 2014


Hi
I added few functions to libclang:

+clang_getCursorSourceFile
+clang_getOperatorString
+clang_getBinaryOpCode
+clang_getUnaryOpCode
+clang_getLiteralString
+clang_getForStmtInit
+clang_getForStmtCond
+clang_getForStmtInc
+clang_getForStmtBody
+clang_getFriendCursor
+clang_getFriendType

I using them in my project.

Not all of them are perfect. My Clang SDK knowledge is much lower than
midle. So any fixes including 'best practice' are welcome.

Based on r205967

Aleksey
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140428/3d8a7048/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libclang_3.4-trunk-205967.patch
Type: text/x-patch
Size: 11138 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140428/3d8a7048/attachment.bin>


More information about the cfe-commits mailing list