cython-codegen icon indicating copy to clipboard operation
cython-codegen copied to clipboard

support for cdef cppclass

Open chadrik opened this issue 13 years ago • 1 comments

not an issue, just a feature request. any plans to add support for the 'cdef cppclass' statement? i think it was added in cython 0.13 and allows for easy declaration of c++ classes.

chadrik avatar Dec 02 '10 06:12 chadrik

Hi Chadrik.

Unfortunately, I don't have time to work on cython-codegen ATM, so you would have to do it by yourself (in which case I would add gladly merge it).

Also, while useful, I think cython-codegen is a dead end in how it works. I think a better solution is to use clang from the LLVM project to parse C reliably and generate .pxd files from there (see e.g. http://amnoid.de/tmp/clangtut/tut.html).

cournape avatar Dec 06 '10 02:12 cournape