{"action":"created","issue":{"url":"https://api.github.com/repos/universal-ctags/ctags/issues/1178","repository_url":"https://api.github.com/repos/universal-ctags/ctags","labels_url":"https://api.github.com/repos/universal-ctags/ctags/issues/1178/labels{/name}","comments_url":"https://api.github.com/repos/universal-ctags/ctags/issues/1178/comments","events_url":"https://api.github.com/repos/universal-ctags/ctags/issues/1178/events","html_url":"https://github.com/universal-ctags/ctags/issues/1178","id":188458288,"number":1178,"title":"Incorrect parsing of C++11 enums with underlying types.","user":{"login":"vahancho","id":1545537,"avatar_url":"https://avatars.githubusercontent.com/u/1545537?v=3","gravatar_id":"","url":"https://api.github.com/users/vahancho","html_url":"https://github.com/vahancho","followers_url":"https://api.github.com/users/vahancho/followers","following_url":"https://api.github.com/users/vahancho/following{/other_user}","gists_url":"https://api.github.com/users/vahancho/gists{/gist_id}","starred_url":"https://api.github.com/users/vahancho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vahancho/subscriptions","organizations_url":"https://api.github.com/users/vahancho/orgs","repos_url":"https://api.github.com/users/vahancho/repos","events_url":"https://api.github.com/users/vahancho/events{/privacy}","received_events_url":"https://api.github.com/users/vahancho/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"pragmaware","id":8988456,"avatar_url":"https://avatars.githubusercontent.com/u/8988456?v=3","gravatar_id":"","url":"https://api.github.com/users/pragmaware","html_url":"https://github.com/pragmaware","followers_url":"https://api.github.com/users/pragmaware/followers","following_url":"https://api.github.com/users/pragmaware/following{/other_user}","gists_url":"https://api.github.com/users/pragmaware/gists{/gist_id}","starred_url":"https://api.github.com/users/pragmaware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pragmaware/subscriptions","organizations_url":"https://api.github.com/users/pragmaware/orgs","repos_url":"https://api.github.com/users/pragmaware/repos","events_url":"https://api.github.com/users/pragmaware/events{/privacy}","received_events_url":"https://api.github.com/users/pragmaware/received_events","type":"User","site_admin":false},"assignees":[{"login":"pragmaware","id":8988456,"avatar_url":"https://avatars.githubusercontent.com/u/8988456?v=3","gravatar_id":"","url":"https://api.github.com/users/pragmaware","html_url":"https://github.com/pragmaware","followers_url":"https://api.github.com/users/pragmaware/followers","following_url":"https://api.github.com/users/pragmaware/following{/other_user}","gists_url":"https://api.github.com/users/pragmaware/gists{/gist_id}","starred_url":"https://api.github.com/users/pragmaware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pragmaware/subscriptions","organizations_url":"https://api.github.com/users/pragmaware/orgs","repos_url":"https://api.github.com/users/pragmaware/repos","events_url":"https://api.github.com/users/pragmaware/events{/privacy}","received_events_url":"https://api.github.com/users/pragmaware/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2016-11-10T09:26:32Z","updated_at":"2016-11-14T15:55:37Z","closed_at":"2016-11-13T00:04:14Z","body":"Hi guys,\r\n\r\nFirst of all - universal-ctags is a great tool! Thanks for it.\r\n\r\nNow about the issue.\r\nCommand line: `ctags -R -x --_xformat=[%{kind}][%{scope}][%{scopeKind}][%{access}][%{typeref}][%{signature}][%{compact}] --sort=no --extra=*-q --c++-kinds=*-zlm --fields=*-lne --language-force=C++`\r\n\r\n#### Example 1 (good):\r\n\r\n```\r\nnamespace Foo\r\n{\r\n    enum class Enum : unsigned char\r\n    {\r\n        A,\r\n        B,\r\n        C\r\n    };\r\n}\r\n```\r\nResult 1:\r\n```\r\n[namespace][][][-][-][-][namespace Foo]\r\n[enum][Foo][namespace][-][-][-][enum class Enum : unsigned char]\r\n[enumerator][Foo::Enum][enum][public][-][-][A,]\r\n[enumerator][Foo::Enum][enum][public][-][-][B,]\r\n[enumerator][Foo::Enum][enum][public][-][-][C ]\r\n```\r\n\r\nSo far so good.\r\n#### Example 2 (bad):\r\n```\r\nnamespace Foo\r\n{\r\n    enum class Enum : uint8_t\r\n    {\r\n        A,\r\n        B,\r\n        C\r\n    };\r\n}\r\n```\r\nResult 2:\r\n```\r\n[namespace][][][-][-][-][namespace Foo]\r\n[enum][Foo][namespace][-][-][-][enum class Enum : uint8_t]\r\n[enumerator][Foo::uint8_t][enum][public][-][-][A,]\r\n[enumerator][Foo::uint8_t][enum][public][-][-][B,]\r\n[enumerator][Foo::uint8_t][enum][public][-][-][C ]\r\n```\r\n\r\nNote the scope field of enumerators. It's `Foo::uint8_t` instead of `Foo::Enum` as in the first example. It looks like only some basic builtin types parsed correctly.\r\n"},"comment":{"url":"https://api.github.com/repos/universal-ctags/ctags/issues/comments/260374448","html_url":"https://github.com/universal-ctags/ctags/issues/1178#issuecomment-260374448","issue_url":"https://api.github.com/repos/universal-ctags/ctags/issues/1178","id":260374448,"user":{"login":"vahancho","id":1545537,"avatar_url":"https://avatars.githubusercontent.com/u/1545537?v=3","gravatar_id":"","url":"https://api.github.com/users/vahancho","html_url":"https://github.com/vahancho","followers_url":"https://api.github.com/users/vahancho/followers","following_url":"https://api.github.com/users/vahancho/following{/other_user}","gists_url":"https://api.github.com/users/vahancho/gists{/gist_id}","starred_url":"https://api.github.com/users/vahancho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vahancho/subscriptions","organizations_url":"https://api.github.com/users/vahancho/orgs","repos_url":"https://api.github.com/users/vahancho/repos","events_url":"https://api.github.com/users/vahancho/events{/privacy}","received_events_url":"https://api.github.com/users/vahancho/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T15:55:37Z","updated_at":"2016-11-14T15:55:37Z","body":"Thanks for the quick fix. Great job!"}}
{"actor":{"display_login":"vahancho"}}