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

Gregory Szorc gregory.szorc at gmail.com
Mon Jun 11 04:13:42 PDT 2012


Committing to https://llvm.org/svn/llvm-project/cfe/trunk ...
	M	bindings/python/clang/cindex.py
	M	bindings/python/tests/cindex/test_location.py
Committed r158307

On Mon, Jun 11, 2012 at 12:03 PM, Manuel Klimek <klimek at google.com> wrote:
> 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
>>
>




More information about the cfe-commits mailing list