{"comment":{"url":"https://api.github.com/repos/danmar/cppcheck/comments/9636835","html_url":"https://github.com/danmar/cppcheck/commit/eec938dbad86cefaa51cc65e901616f5fa477ee7#commitcomment-9636835","id":9636835,"user":{"login":"danmar","id":60195,"avatar_url":"https://avatars.githubusercontent.com/u/60195?v=3","gravatar_id":"","url":"https://api.github.com/users/danmar","html_url":"https://github.com/danmar","followers_url":"https://api.github.com/users/danmar/followers","following_url":"https://api.github.com/users/danmar/following{/other_user}","gists_url":"https://api.github.com/users/danmar/gists{/gist_id}","starred_url":"https://api.github.com/users/danmar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danmar/subscriptions","organizations_url":"https://api.github.com/users/danmar/orgs","repos_url":"https://api.github.com/users/danmar/repos","events_url":"https://api.github.com/users/danmar/events{/privacy}","received_events_url":"https://api.github.com/users/danmar/received_events","type":"User","site_admin":false},"position":7,"line":1219,"path":"test/testcondition.cpp","commit_id":"eec938dbad86cefaa51cc65e901616f5fa477ee7","created_at":"2015-02-07T14:18:07Z","updated_at":"2015-02-07T14:18:07Z","body":"you are right.\r\n\r\nthis checker is primarily intended to warn about conditions. My focus was to ensure that it doesn't warn when the comparison parent is ?.\r\n\r\nI don't think it should warn about the initialization statement in a for loop at all. But that should be tested by another test case imho."}}