]> granicus.if.org Git - clang/commit
Add Python 3 support to clang.cindex
authorJonathan Coe <jbcoe@me.com>
Thu, 20 Apr 2017 10:11:01 +0000 (10:11 +0000)
committerJonathan Coe <jbcoe@me.com>
Thu, 20 Apr 2017 10:11:01 +0000 (10:11 +0000)
commit4a1e65760d5fdf77f6dde58df5058362f4e5b54a
tree4e4905bd76e353d4d4bd598913edf35d319c312b
parentba88279757746998f8cffbad404fdf1de0bd5eb7
Add Python 3 support to clang.cindex

Summary:
Introduce an interop string to convert from unicode to c-strings where needed.
Add missing conversions from _CXString to strings in function registrations.
Explicitly evaluate lists where Python 3's lazy iterators would not otherwise do so.

This is an improvement upon the reverted change proposed in https://reviews.llvm.org/D26082

Reviewers: compnerd, skalinichev, modocache, MathieuDuponchelle

Reviewed By: compnerd

Subscribers: cfe-commits

Tags: #clang-c

Differential Revision: https://reviews.llvm.org/D31568

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@300829 91177308-0d34-0410-b5e6-96231b3b80d8
bindings/python/clang/__init__.py
bindings/python/clang/cindex.py
bindings/python/tests/cindex/test_translation_unit.py