[PATCH] Expose AST Record layout attributes to libclang

Loïc Jaquemet loic.jaquemet at gmail.com
Mon Feb 11 17:04:53 PST 2013


Hello,

This patch is 3 functions in libclang to get more Record Layout
information from the AST when using libclang.

I am trying to implement the python ctypeslib record generator by
replacing gccxml with libclang.

Following your comments, I corrected my submission.
Yet I have no idea how to correctly implement the test of a record
size, given it is dependent of the tester's arch.
is there some lit.py magic for that ?

Files:
001:
 include/clang-c/Index.h
 tools/libclang/CXType.cpp
 tools/libclang/libclang.exports
002:
 test/Index/print-typekind.c
 tools/c-index-test/c-index-test.c
003:
 bindings/python/tests/cindex/test_type.py
 bindings/python/clang/cindex.py



-- 
Loïc Jaquemet
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expose-ast-record-layout-001
Type: application/octet-stream
Size: 3868 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130211/95864ce7/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expose-ast-record-layout-002-tests
Type: application/octet-stream
Size: 1794 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130211/95864ce7/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: expose-ast-record-layout-003-python-bindings
Type: application/octet-stream
Size: 5641 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130211/95864ce7/attachment-0002.obj>


More information about the cfe-commits mailing list