[cindex.py] expose C++ access specifiers in the libclang Python bindings

Tamás Szelei hello.sztomi at gmail.com
Sun Feb 16 07:18:41 PST 2014


Hello,

This patch exposes the enum CX_CXXAccessSpecifier in the Python bindings as
a property of the Cursor. The naming and implementation mimics that of the
CursorKind enum. Since there is an INVALID value in the enum, the property
does not raise when getting the access specifier would not make sense on
the node pointed by the cursor. It simply returns the INVALID value.
This is my first patch to this project, please provide feedback.

Regards,
Tamás Szelei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140216/4df8813c/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: access_spec.patch
Type: text/x-patch
Size: 3747 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140216/4df8813c/attachment.bin>


More information about the cfe-commits mailing list