{"action":"created","issue":{"url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1285","repository_url":"https://api.github.com/repos/uncrustify/uncrustify","labels_url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1285/labels{/name}","comments_url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1285/comments","events_url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1285/events","html_url":"https://github.com/uncrustify/uncrustify/issues/1285","id":243701867,"number":1285,"title":"Bad tokenization of function pointers from function arguments","user":{"login":"mihaipopescu","id":272470,"avatar_url":"https://avatars1.githubusercontent.com/u/272470?v=4","gravatar_id":"","url":"https://api.github.com/users/mihaipopescu","html_url":"https://github.com/mihaipopescu","followers_url":"https://api.github.com/users/mihaipopescu/followers","following_url":"https://api.github.com/users/mihaipopescu/following{/other_user}","gists_url":"https://api.github.com/users/mihaipopescu/gists{/gist_id}","starred_url":"https://api.github.com/users/mihaipopescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mihaipopescu/subscriptions","organizations_url":"https://api.github.com/users/mihaipopescu/orgs","repos_url":"https://api.github.com/users/mihaipopescu/repos","events_url":"https://api.github.com/users/mihaipopescu/events{/privacy}","received_events_url":"https://api.github.com/users/mihaipopescu/received_events","type":"User","site_admin":false},"labels":[{"id":414546969,"url":"https://api.github.com/repos/uncrustify/uncrustify/labels/C%20and%20C++11","name":"C and C++11","color":"5319e7","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-07-18T12:40:06Z","updated_at":"2018-02-13T16:55:34Z","closed_at":"2018-02-13T16:55:34Z","author_association":"CONTRIBUTOR","body":"\n\nExpected versus output diff:\n---\n```diff\ndiff --git \"a/C:\\\\work\\\\external\\\\uncrustify\\\\tests\\\\output\\\\staging\\\\60028-UNI-21509.cpp\" \"b/C:\\\\work\\\\external\\\\uncrustify\\\\tests\\\\results\\\\staging\\\\60028-UNI-21509.cpp\"\nindex c89583f..3813c39 100644\n--- \"a/C:\\\\work\\\\external\\\\uncrustify\\\\tests\\\\output\\\\staging\\\\60028-UNI-21509.cpp\"\n+++ \"b/C:\\\\work\\\\external\\\\uncrustify\\\\tests\\\\results\\\\staging\\\\60028-UNI-21509.cpp\"\n@@ -1,11 +1,15 @@\n void (*foo)(int);\n static bar(void (*foo)(int))\n {\n }\n \n bool (*comp_func)(const TypeA*const a, const TypeB& value) = NULL;\n-static foo(bool (*comp_func)(const TypeA*const a, const TypeB& value) = NULL)\n+static foo(bool (*comp_func)(const TypeA * const a, const TypeB&value));\n+static foo(bool (*comp_func)(const TypeA * const a, const TypeB&value) = NULL)\n {\n }\n \n-void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const void*, const void&));\n+void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const TypeA* lhs, const TypeB&rhs));\n+void qsort(void *base, size_t nmemb, size_t size, int(*compar)(const TypeA* lhs, const TypeB&rhs) = NULL)\n+{\n+}\n```\n\nDebug support files:\n---\n[60028-UNI-21509.cpp](https://gist.githubusercontent.com/mihaipopescu/62c214b02de026c02a8a0f0f36f3bece/raw/c89583f8d9f31d6afa7cad2153b2df79e99f936b/60028-UNI-21509.cpp)\n[60028-UNI-21509.cpp.log](https://gist.githubusercontent.com/mihaipopescu/62c214b02de026c02a8a0f0f36f3bece/raw/ff64332b7134bc7ec5abadfd0a392f3a05ab0273/60028-UNI-21509.cpp.log)\n[60028-UNI-21509.cpp.unc](https://gist.githubusercontent.com/mihaipopescu/62c214b02de026c02a8a0f0f36f3bece/raw/df9f74583721e624e2c537e03446d561b3754aa4/60028-UNI-21509.cpp.unc)\n[Uncrustify.Cpp.cfg](https://gist.githubusercontent.com/mihaipopescu/62c214b02de026c02a8a0f0f36f3bece/raw/23d62d9dba5caf352fdc1793792e98eed4b81929/Uncrustify.Cpp.cfg)\n[UNI-21509.cpp](https://gist.githubusercontent.com/mihaipopescu/62c214b02de026c02a8a0f0f36f3bece/raw/6a9f6bed5a7d3d9955d5ed954f23e3128004c56b/UNI-21509.cpp)\n\nDisclaimer:\n---\nNote: This is a generated issue from our internal issue tracker.\nExpect a dry description which could be insufficient to properly understand the issue.\nOn the other hand, the support files should be sufficient to easily reproduce and debug the issue,\nbut please comment if it's still unclear and I will get back with clarifications.\nSee main discussion thread here #1223."},"comment":{"url":"https://api.github.com/repos/uncrustify/uncrustify/issues/comments/365330317","html_url":"https://github.com/uncrustify/uncrustify/issues/1285#issuecomment-365330317","issue_url":"https://api.github.com/repos/uncrustify/uncrustify/issues/1285","id":365330317,"user":{"login":"gmaurel","id":11668016,"avatar_url":"https://avatars2.githubusercontent.com/u/11668016?v=4","gravatar_id":"","url":"https://api.github.com/users/gmaurel","html_url":"https://github.com/gmaurel","followers_url":"https://api.github.com/users/gmaurel/followers","following_url":"https://api.github.com/users/gmaurel/following{/other_user}","gists_url":"https://api.github.com/users/gmaurel/gists{/gist_id}","starred_url":"https://api.github.com/users/gmaurel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gmaurel/subscriptions","organizations_url":"https://api.github.com/users/gmaurel/orgs","repos_url":"https://api.github.com/users/gmaurel/repos","events_url":"https://api.github.com/users/gmaurel/events{/privacy}","received_events_url":"https://api.github.com/users/gmaurel/received_events","type":"User","site_admin":false},"created_at":"2018-02-13T16:55:34Z","updated_at":"2018-02-13T16:55:34Z","author_association":"COLLABORATOR","body":"Fixed at 78af3bb958fe603ba778fad654af38b520079bc3, on Dec 19 16:03:19 2017"}}
{"actor":{"display_login":"gmaurel"}}