{"action":"created","issue":{"url":"https://api.github.com/repos/zneak/fcd/issues/4","repository_url":"https://api.github.com/repos/zneak/fcd","labels_url":"https://api.github.com/repos/zneak/fcd/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/zneak/fcd/issues/4/comments","events_url":"https://api.github.com/repos/zneak/fcd/issues/4/events","html_url":"https://github.com/zneak/fcd/issues/4","id":134389853,"number":4,"title":"print declarations where they happen instead of function start","user":{"login":"Trass3r","id":404623,"avatar_url":"https://avatars.githubusercontent.com/u/404623?v=3","gravatar_id":"","url":"https://api.github.com/users/Trass3r","html_url":"https://github.com/Trass3r","followers_url":"https://api.github.com/users/Trass3r/followers","following_url":"https://api.github.com/users/Trass3r/following{/other_user}","gists_url":"https://api.github.com/users/Trass3r/gists{/gist_id}","starred_url":"https://api.github.com/users/Trass3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Trass3r/subscriptions","organizations_url":"https://api.github.com/users/Trass3r/orgs","repos_url":"https://api.github.com/users/Trass3r/repos","events_url":"https://api.github.com/users/Trass3r/events{/privacy}","received_events_url":"https://api.github.com/users/Trass3r/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-17T20:23:00Z","updated_at":"2016-02-29T15:57:56Z","closed_at":"2016-02-17T23:28:43Z","body":"Like in C99/C++ vs. older C.\r\nJust tested a quick hack removing the decl block and adding the type to the token returned by `FunctionNode::createDeclaration(Type &type, const string& declName)`.\r\nAlready better, but of course also affects further usages. DeclarationStatement would need to be transformed somehow.\r\n\r\nbtw very nifty approach using a normal emulator instead of the usual cumbersome llvm API code :+1: "},"comment":{"url":"https://api.github.com/repos/zneak/fcd/issues/comments/190267892","html_url":"https://github.com/zneak/fcd/issues/4#issuecomment-190267892","issue_url":"https://api.github.com/repos/zneak/fcd/issues/4","id":190267892,"user":{"login":"zneak","id":2836964,"avatar_url":"https://avatars.githubusercontent.com/u/2836964?v=3","gravatar_id":"","url":"https://api.github.com/users/zneak","html_url":"https://github.com/zneak","followers_url":"https://api.github.com/users/zneak/followers","following_url":"https://api.github.com/users/zneak/following{/other_user}","gists_url":"https://api.github.com/users/zneak/gists{/gist_id}","starred_url":"https://api.github.com/users/zneak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zneak/subscriptions","organizations_url":"https://api.github.com/users/zneak/orgs","repos_url":"https://api.github.com/users/zneak/repos","events_url":"https://api.github.com/users/zneak/events{/privacy}","received_events_url":"https://api.github.com/users/zneak/received_events","type":"User","site_admin":false},"created_at":"2016-02-29T15:57:56Z","updated_at":"2016-02-29T15:57:56Z","body":"By the way, I had to do away with declaration nodes in the ast-uses branch, so while I was at it I implemented support for this. (ast-uses is still in a very rudimentary state, no AST pass compiles yet except the printing one.)"}}