<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div dir="ltr"></div><div dir="ltr">I’ve done a little work with libclang and the python bindings and could take a look if you can send me a simple reproduction of the problem (ideally a passing/failing python test).</div><div dir="ltr"><br></div><div dir="ltr">Best</div><div dir="ltr"><br></div><div dir="ltr">Jon</div><div dir="ltr"><br>On 4 Oct 2018, at 20:24, Bryan Jones via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br><br></div><blockquote type="cite"><div dir="ltr"><meta http-equiv="Content-Type" content="text/html; charset=utf-8">Hello:<div class=""><br class=""></div><div class="">I am using libclang (via the Python binding) to parse an Objective-C header file and generate a new Swift file. On macOS 10.13.6 with Xcode 9.4.1, the script works perfectly.</div><div class=""><br class=""></div><div class="">On Mojave, with Xcode 10, the script can’t find the return values of Objective-C methods any longer because they no longer appear to be children of the cursor that represents each method. The result_type of each cursor is also INVALID, so I’m struggling to see how I can pull the return type of an ObjC method.</div><div class=""><br class=""></div><div class="">Has something changed in Clang 10.0.0.0 that would cause this? For a very detailed writeup, with examples, please see: <a href="https://stackoverflow.com/questions/52640399/libclang-python-binding-get-objc-method-return-value" class="">https://stackoverflow.com/questions/52640399/libclang-python-binding-get-objc-method-return-value</a></div><div class=""><br class=""></div><div class="">I’m sorry to spam the list, but expertise with Clang is rare and nobody elsewhere seems to have any ideas. Thank you for your help.</div><div class=""><br class=""></div><div class="">-Bryan</div><div class=""><br class=""></div></div></blockquote><blockquote type="cite"><div dir="ltr"><span>_______________________________________________</span><br><span>cfe-dev mailing list</span><br><span><a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a></span><br><span><a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a></span><br></div></blockquote></body></html>