[PATCH] libclang Python bindings - add source type functions to SourceLocation

Kyle Mayes kyle at mayeses.com
Sun Mar 15 16:12:21 PDT 2015


Hello,

This is my first ever patch to anything, so please let me know if I did
something wrong.

This patch adds support for the clang_Location_isFromMainFile and
clang_Location_isInSystemHeader functions in the libclang Python bindings.

The functions are added as member functions of the SourceLocation class.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150315/21620c15/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libclang-python-SourceLocation.patch
Type: text/x-patch
Size: 2512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150315/21620c15/attachment.bin>


More information about the cfe-commits mailing list