{"action":"created","issue":{"url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1030","repository_url":"https://api.github.com/repos/uncrustify/uncrustify","labels_url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1030/labels{/name}","comments_url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1030/comments","events_url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1030/events","html_url":"https://github.com/uncrustify/uncrustify/issues/1030","id":208944792,"number":1030,"title":"alignment of = sign in enum typedef","user":{"login":"stleusc","id":1132106,"avatar_url":"https://avatars.githubusercontent.com/u/1132106?v=3","gravatar_id":"","url":"https://api.github.com/users/stleusc","html_url":"https://github.com/stleusc","followers_url":"https://api.github.com/users/stleusc/followers","following_url":"https://api.github.com/users/stleusc/following{/other_user}","gists_url":"https://api.github.com/users/stleusc/gists{/gist_id}","starred_url":"https://api.github.com/users/stleusc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stleusc/subscriptions","organizations_url":"https://api.github.com/users/stleusc/orgs","repos_url":"https://api.github.com/users/stleusc/repos","events_url":"https://api.github.com/users/stleusc/events{/privacy}","received_events_url":"https://api.github.com/users/stleusc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-02-20T17:38:20Z","updated_at":"2017-02-20T19:34:03Z","closed_at":null,"body":"I'm sure I saw an option that produced the following output. Can't find it anymore :-(\r\n\r\n```C\r\ntypedef enum\r\n{\r\n    XXXXXXXXXXXXXXXXX      = 0U,\r\n    ZZZZZZZZZZZ            = 1U,\r\n    TTTTTTTT               = 2U\r\n} MyType;\r\n```\r\n\r\nAny advice?"},"comment":{"url":"https://api.github.com/repos/uncrustify/uncrustify/issues/comments/281164440","html_url":"https://github.com/uncrustify/uncrustify/issues/1030#issuecomment-281164440","issue_url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1030","id":281164440,"user":{"login":"stleusc","id":1132106,"avatar_url":"https://avatars.githubusercontent.com/u/1132106?v=3","gravatar_id":"","url":"https://api.github.com/users/stleusc","html_url":"https://github.com/stleusc","followers_url":"https://api.github.com/users/stleusc/followers","following_url":"https://api.github.com/users/stleusc/following{/other_user}","gists_url":"https://api.github.com/users/stleusc/gists{/gist_id}","starred_url":"https://api.github.com/users/stleusc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stleusc/subscriptions","organizations_url":"https://api.github.com/users/stleusc/orgs","repos_url":"https://api.github.com/users/stleusc/repos","events_url":"https://api.github.com/users/stleusc/events{/privacy}","received_events_url":"https://api.github.com/users/stleusc/received_events","type":"User","site_admin":false},"created_at":"2017-02-20T19:34:03Z","updated_at":"2017-02-20T19:34:03Z","body":"I'll see that I update the description better.\r\n\r\nExample input:\r\n\r\n```C\r\ntypedef enum\r\n{\r\n    XXXXXXXXXXXXXXXXX = 0U,\r\n    ZZZZZZZZZZZ = 1U,\r\n    TTTTTTTT = 2U\r\n} MyType;\r\n```\r\n\r\nI understand the need for some global flag but then there should be a specific flag for EACH suboption.\r\n\r\nRight now I don't see a way how I can align enum and NOT align code.\r\n\r\nBest result is achieved so far using\r\n\r\n```\r\nalign_assign_span=1\r\nalign_assign_thresh=1\r\nalign_enum_equ_span=1\r\nalign_enum_equ_thresh=0\r\n```\r\n\r\nBut it will still align this code as well\r\n\r\n```C\r\nx = 3;\r\nxy = 4;\r\n```\r\n\r\nwill become\r\n\r\n```C\r\nx  = 3;\r\nxy = 4;\r\n```\r\n\r\n[uncrustify.cfg](http://pastebin.com/Gk3qvjnH)\r\n"}}
{"actor":{"display_login":"stleusc"}}