<div dir="ltr">Are you parsing as C++98 (the default, I think? That code is invalid C++98/C++03, I think (because the ">>" is interpreted as a right shift operator, not the end of two template argument lists). In C++11 and above, it should do the right thing.</div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 26, 2018 at 2:17 PM Tarcísio Fischer via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif"><div class="gmail_default">Hello. I'm new with the clang python bindings (<a href="https://github.com/llvm-mirror/clang/tree/master/bindings/python" target="_blank">https://github.com/llvm-mirror/clang/tree/master/bindings/python</a>), and I'm mostly basing my tests on the test examples on <a href="https://github.com/llvm-mirror/clang/tree/master/bindings/python/tests/cindex" target="_blank">https://github.com/llvm-mirror/clang/tree/master/bindings/python/tests/cindex</a> . Feel free to suggest any better documentation.</div><div class="gmail_default"><br></div><div class="gmail_default">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?</div><div class="gmail_default"><br></div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif"><font face="verdana, sans-serif"><a href="https://pastebin.com/TF3RLibt" target="_blank">https://pastebin.com/TF3RLibt</a></font><br></div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif"><font face="verdana, sans-serif">Results on my machine:</font></div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default" style="font-family:Arial,Helvetica,sans-serif"><div class="gmail_default"><font face="monospace, monospace">t.cpp (TypeKind.INVALID)</font></div><div class="gmail_default"><font face="monospace, monospace">****************************************************************************************************</font></div><div class="gmail_default"><font face="monospace, monospace">t.cpp (TypeKind.INVALID)</font></div><div class="gmail_default"><font face="monospace, monospace"> example() (TypeKind.FUNCTIONPROTO)</font></div><div class="gmail_default"><font face="monospace, monospace"> (TypeKind.INVALID)</font></div><div class="gmail_default"><font face="monospace, monospace"> (TypeKind.INVALID)</font></div></div></div></div>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br>
</blockquote></div>