{"action":"created","issue":{"url":"https://api.github.com/repos/servo/rust-bindgen/issues/130","repository_url":"https://api.github.com/repos/servo/rust-bindgen","labels_url":"https://api.github.com/repos/servo/rust-bindgen/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/servo/rust-bindgen/issues/130/comments","events_url":"https://api.github.com/repos/servo/rust-bindgen/issues/130/events","html_url":"https://github.com/servo/rust-bindgen/issues/130","id":185178974,"number":130,"title":"clang::Cursor::args should return an Option<Vec<Cursor>>","user":{"login":"fitzgen","id":74571,"avatar_url":"https://avatars.githubusercontent.com/u/74571?v=3","gravatar_id":"","url":"https://api.github.com/users/fitzgen","html_url":"https://github.com/fitzgen","followers_url":"https://api.github.com/users/fitzgen/followers","following_url":"https://api.github.com/users/fitzgen/following{/other_user}","gists_url":"https://api.github.com/users/fitzgen/gists{/gist_id}","starred_url":"https://api.github.com/users/fitzgen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fitzgen/subscriptions","organizations_url":"https://api.github.com/users/fitzgen/orgs","repos_url":"https://api.github.com/users/fitzgen/repos","events_url":"https://api.github.com/users/fitzgen/events{/privacy}","received_events_url":"https://api.github.com/users/fitzgen/received_events","type":"User","site_admin":false},"labels":[{"id":447210329,"url":"https://api.github.com/repos/servo/rust-bindgen/labels/E-easy","name":"E-easy","color":"c2e0c6","default":false},{"id":462726397,"url":"https://api.github.com/repos/servo/rust-bindgen/labels/I-cleanup","name":"I-cleanup","color":"f9d0c4","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-25T17:13:49Z","updated_at":"2016-11-04T15:43:56Z","closed_at":null,"body":"Right now it always returns a `Vec<Cursor>` but it makes FFI calls to `clang_Cursor_getArgument` which are only valid if the cursor's referent is a function or method declarations and calls:\n\nhttp://clang.llvm.org/doxygen/group__CINDEX__TYPES.html#ga673c5529d33eedd0b78aca5ac6fc1d7c\n\n> The argument cursor can be determined for calls as well as for declarations of functions or methods. For other cursors and for invalid indices, an invalid cursor is returned. \n\nWe should check whether the cursor referent is a valid kind, and if it is not, we should return `None`. This will be one less foot gun.\n\nI can mentor whoever would like to pick up this bug.\n"},"comment":{"url":"https://api.github.com/repos/servo/rust-bindgen/issues/comments/258467221","html_url":"https://github.com/servo/rust-bindgen/issues/130#issuecomment-258467221","issue_url":"https://api.github.com/repos/servo/rust-bindgen/issues/130","id":258467221,"user":{"login":"Natim","id":229453,"avatar_url":"https://avatars.githubusercontent.com/u/229453?v=3","gravatar_id":"","url":"https://api.github.com/users/Natim","html_url":"https://github.com/Natim","followers_url":"https://api.github.com/users/Natim/followers","following_url":"https://api.github.com/users/Natim/following{/other_user}","gists_url":"https://api.github.com/users/Natim/gists{/gist_id}","starred_url":"https://api.github.com/users/Natim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Natim/subscriptions","organizations_url":"https://api.github.com/users/Natim/orgs","repos_url":"https://api.github.com/users/Natim/repos","events_url":"https://api.github.com/users/Natim/events{/privacy}","received_events_url":"https://api.github.com/users/Natim/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T15:43:56Z","updated_at":"2016-11-04T15:43:56Z","body":"I will try to give it a try with @glasserc"}}
{"actor":{"display_login":"Natim"}}