{"action":"created","issue":{"url":"https://api.github.com/repos/arduino/Arduino/issues/4067","labels_url":"https://api.github.com/repos/arduino/Arduino/issues/4067/labels{/name}","comments_url":"https://api.github.com/repos/arduino/Arduino/issues/4067/comments","events_url":"https://api.github.com/repos/arduino/Arduino/issues/4067/events","html_url":"https://github.com/arduino/Arduino/issues/4067","id":114671876,"number":4067,"title":"Multiline templates not supported in sketch","user":{"login":"xEtherealx","id":3417501,"avatar_url":"https://avatars.githubusercontent.com/u/3417501?v=3","gravatar_id":"","url":"https://api.github.com/users/xEtherealx","html_url":"https://github.com/xEtherealx","followers_url":"https://api.github.com/users/xEtherealx/followers","following_url":"https://api.github.com/users/xEtherealx/following{/other_user}","gists_url":"https://api.github.com/users/xEtherealx/gists{/gist_id}","starred_url":"https://api.github.com/users/xEtherealx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xEtherealx/subscriptions","organizations_url":"https://api.github.com/users/xEtherealx/orgs","repos_url":"https://api.github.com/users/xEtherealx/repos","events_url":"https://api.github.com/users/xEtherealx/events{/privacy}","received_events_url":"https://api.github.com/users/xEtherealx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-02T19:56:08Z","updated_at":"2015-11-03T07:48:17Z","closed_at":null,"body":"The following sketch fails to compile:\r\n\r\n    #include \"Arduino.h\"\r\n    template <typename T> T test (T a) { return a;}\r\n    void setup () { }\r\n    void loop () { }\r\n\r\nWith `error: 'T' does not name a type`\r\n\r\nThis is with 1.6.5 on a mac"},"comment":{"url":"https://api.github.com/repos/arduino/Arduino/issues/comments/153281509","html_url":"https://github.com/arduino/Arduino/issues/4067#issuecomment-153281509","issue_url":"https://api.github.com/repos/arduino/Arduino/issues/4067","id":153281509,"user":{"login":"ffissore","id":510465,"avatar_url":"https://avatars.githubusercontent.com/u/510465?v=3","gravatar_id":"","url":"https://api.github.com/users/ffissore","html_url":"https://github.com/ffissore","followers_url":"https://api.github.com/users/ffissore/followers","following_url":"https://api.github.com/users/ffissore/following{/other_user}","gists_url":"https://api.github.com/users/ffissore/gists{/gist_id}","starred_url":"https://api.github.com/users/ffissore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ffissore/subscriptions","organizations_url":"https://api.github.com/users/ffissore/orgs","repos_url":"https://api.github.com/users/ffissore/repos","events_url":"https://api.github.com/users/ffissore/events{/privacy}","received_events_url":"https://api.github.com/users/ffissore/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T07:48:17Z","updated_at":"2015-11-03T07:48:17Z","body":"@matthijskooijman as you found out, ctags output includes one code line, not \"function\".\r\nPlease @xEtherealx stick on writing function on line line only.\r\n\r\nI will not disable template generation as it works well when functions are written all on one line. If \"one line\" is not an option, writing the prototype yourself is the workaround.\r\n\r\nThis was one of the main goal of arduino-builder: do whatever you can to make things just work and provide options when they don't work. Previous prototype generation failed miserably, leaving users the only option to stop using the IDE: templates are an example, see #472\r\nIf you don't wish to trigger prototype generation, write them: arduino-builder will just skip all the already available prototypes.\r\n\r\nAs for https://github.com/arduino/arduino-builder/issues/30, some work is already available (see \"functionpointer\" branch): I just don't yet feel confident enough with it."}}