[cfe-dev] Issue with cindex parsing on python: Can't parse function that returns a std::vector<std::vector<int>>

TarcĂ­sio Fischer via cfe-dev cfe-dev at lists.llvm.org
Fri Oct 26 14:16:10 PDT 2018


Hello. I'm new with the clang python bindings (
https://github.com/llvm-mirror/clang/tree/master/bindings/python), and I'm
mostly basing my tests on the test examples on
https://github.com/llvm-mirror/clang/tree/master/bindings/python/tests/cindex .
Feel free to suggest any better documentation.

For the following example, I'd expect the two results to be similar, but
the first one isn't getting any data about the function `example`. Does
anyone know why?

https://pastebin.com/TF3RLibt

Results on my machine:

t.cpp (TypeKind.INVALID)
****************************************************************************************************
t.cpp (TypeKind.INVALID)
 example() (TypeKind.FUNCTIONPROTO)
   (TypeKind.INVALID)
    (TypeKind.INVALID)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20181026/f58774b6/attachment.html>


More information about the cfe-dev mailing list