[cfe-commits] [PATCH] [clang.py] Implement SourceLocation.from_offset

Gregory Szorc gregory.szorc at gmail.com
Sat Jun 9 09:39:05 PDT 2012

 bindings/python/clang/cindex.py               |   14 ++++++++++++++
 bindings/python/tests/cindex/test_location.py |    9 +++++++++
 2 files changed, 23 insertions(+)

Pretty basic patch. I'll probably follow up at some later date with an
API to better integrate the SourceLocation retrieval functions with
TranslationUnit. e.g. tu.get_location(file='foo.c', line=10, column=4)
or tu.get_location(file='foo.c', offset=10). But, that's for a future

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-clang.py-Implement-SourceLocation.from_offset.patch
Type: text/x-patch
Size: 2153 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120609/a021c7c4/attachment.bin>

More information about the cfe-commits mailing list