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

Manuel Klimek klimek at google.com
Mon Jun 11 03:03:12 PDT 2012


lgtm

On Sat, Jun 9, 2012 at 6:39 PM, Gregory Szorc <gregory.szorc at gmail.com>wrote:

> ---
>  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
> patch.
>
> Greg
>
> _______________________________________________
> cfe-commits mailing list
> cfe-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120611/3a2570ed/attachment.html>


More information about the cfe-commits mailing list