{"action":"created","issue":{"url":"https://api.github.com/repos/niosus/EasyClangComplete/issues/430","repository_url":"https://api.github.com/repos/niosus/EasyClangComplete","labels_url":"https://api.github.com/repos/niosus/EasyClangComplete/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/niosus/EasyClangComplete/issues/430/comments","events_url":"https://api.github.com/repos/niosus/EasyClangComplete/issues/430/events","html_url":"https://github.com/niosus/EasyClangComplete/pull/430","id":296211507,"number":430,"title":"More and improved Objective-C popup info","user":{"login":"kjteske","id":20820660,"avatar_url":"https://avatars2.githubusercontent.com/u/20820660?v=4","gravatar_id":"","url":"https://api.github.com/users/kjteske","html_url":"https://github.com/kjteske","followers_url":"https://api.github.com/users/kjteske/followers","following_url":"https://api.github.com/users/kjteske/following{/other_user}","gists_url":"https://api.github.com/users/kjteske/gists{/gist_id}","starred_url":"https://api.github.com/users/kjteske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjteske/subscriptions","organizations_url":"https://api.github.com/users/kjteske/orgs","repos_url":"https://api.github.com/users/kjteske/repos","events_url":"https://api.github.com/users/kjteske/events{/privacy}","received_events_url":"https://api.github.com/users/kjteske/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-02-11T18:13:55Z","updated_at":"2018-02-12T23:31:03Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/niosus/EasyClangComplete/pulls/430","html_url":"https://github.com/niosus/EasyClangComplete/pull/430","diff_url":"https://github.com/niosus/EasyClangComplete/pull/430.diff","patch_url":"https://github.com/niosus/EasyClangComplete/pull/430.patch"},"body":"Make method descriptions look more ObjC-ish, e.g. this:\r\n`-(Foo *)methodThatReturnsFoo`\r\nInstead of this:\r\n`Foo* methodThatReturnsFoo`\r\n\r\nInclude popup information for more ObjC cursor types, and show body of types like ECC already does for C++ classes and structs.\r\n\r\nFix a cindex bug where cursor.result_type returns None instead of the actual result type. Testing on macOS with cindex40.py seems to work well.\r\n"},"comment":{"url":"https://api.github.com/repos/niosus/EasyClangComplete/issues/comments/365099420","html_url":"https://github.com/niosus/EasyClangComplete/pull/430#issuecomment-365099420","issue_url":"https://api.github.com/repos/niosus/EasyClangComplete/issues/430","id":365099420,"user":{"login":"kjteske","id":20820660,"avatar_url":"https://avatars2.githubusercontent.com/u/20820660?v=4","gravatar_id":"","url":"https://api.github.com/users/kjteske","html_url":"https://github.com/kjteske","followers_url":"https://api.github.com/users/kjteske/followers","following_url":"https://api.github.com/users/kjteske/following{/other_user}","gists_url":"https://api.github.com/users/kjteske/gists{/gist_id}","starred_url":"https://api.github.com/users/kjteske/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kjteske/subscriptions","organizations_url":"https://api.github.com/users/kjteske/orgs","repos_url":"https://api.github.com/users/kjteske/repos","events_url":"https://api.github.com/users/kjteske/events{/privacy}","received_events_url":"https://api.github.com/users/kjteske/received_events","type":"User","site_admin":false},"created_at":"2018-02-12T23:31:03Z","updated_at":"2018-02-12T23:31:03Z","author_association":"CONTRIBUTOR","body":"Thanks for restarting the build.\r\n\r\nI need to use the `cursor.result_type` property for some of the ObjC cases, but this was returning None where I expected it to return a real type.\r\n\r\n`Cursor.result_type` was calling `CXType clang_getResultType(CXType T)` with `self.type`, where `self.type` is the result of calling `CXType clang_getCursorType(CXCursor C)`.\r\n\r\nNow, `Cursor.result_type` will call `CXType clang_getCursorResultType(CXCursor C)`, which seems to make more sense considering it's the 'result_type' property on the 'Cursor' class.\r\n\r\n[clang_getResultType() documentation](https://clang.llvm.org/doxygen/group__CINDEX__TYPES.html#ga39b4850746f39e17c6b8b4eef3154d85)\r\n[clang_getCursorType() documentation](https://clang.llvm.org/doxygen/group__CINDEX__TYPES.html#gaae5702661bb1f2f93038051737de20f4)\r\n[clang_getCursorResultType() documentation](https://clang.llvm.org/doxygen/group__CINDEX__TYPES.html#ga6995a2d6352e7136868574b299005a63)\r\n\r\nI'm not sure why `Cursor.result_type` was implemented the way it was previously. You can now get the same information as before by calling `cursor.type.get_result()` instead of `cursor.result_type`.\r\n"}}
{"actor":{"display_login":"kjteske"}}