[PATCH] D31568: Add Python 3 support to clang.cindex

Jonathan B Coe via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Apr 1 05:01:45 PDT 2017


jbcoe created this revision.
jbcoe added a project: clang-c.

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


Repository:
  rL LLVM

https://reviews.llvm.org/D31568

Files:
  clang/bindings/python/clang/__init__.py
  clang/bindings/python/clang/cindex.py
  clang/bindings/python/tests/cindex/test_translation_unit.py

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31568.93744.patch
Type: text/x-patch
Size: 10328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170401/326cec13/attachment-0001.bin>


More information about the cfe-commits mailing list