[cfe-commits] [PATCH 2/2] [clang.py] Implement Token API
Gregory Szorc
gregory.szorc at gmail.com
Fri Jun 29 00:18:30 PDT 2012
This exposes all of libclang's token functions in the Python bindings.
I'm putting the TokenKind enumerations in a new module,
clang.enumerations. I plan to eventually move all existing
enumerations there so they are all consolidated. And, maybe one day,
we can even generate that file automatically by parsing the libclang
header files. I know Anders has code around somewhere that does
this...
---
bindings/python/clang/cindex.py | 177 +++++++++++++++++++--
bindings/python/clang/enumerations.py | 32 ++++
bindings/python/tests/cindex/test_token_kind.py | 43 +++++
bindings/python/tests/cindex/test_tokens.py | 52 ++++++
.../python/tests/cindex/test_translation_unit.py | 24 ++-
5 files changed, 312 insertions(+), 16 deletions(-)
create mode 100644 bindings/python/clang/enumerations.py
create mode 100644 bindings/python/tests/cindex/test_token_kind.py
create mode 100644 bindings/python/tests/cindex/test_tokens.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-clang.py-Implement-Token-API.patch
Type: text/x-patch
Size: 18592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20120629/163d2d7e/attachment.bin>
More information about the cfe-commits
mailing list