<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Mar 21, 2013, at 19:40 , 凌欢 <<a href="mailto:linghuan713@126.com">linghuan713@126.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="line-height: 1.7; font-size: 14px; font-family: arial; "><div>hi, jordan:<br>After I switch to checker -271 and xcode 4.6+sdk6.1, the same error still exist,</div><div>do you have other ideas?<br>btw, when I use the following command :</div><div><!--StartFragment --><div>
/data/checker/scan-build -o report --use-cc=$clang_path $xcode_path -workspace mtt.xcworkspace -scheme mttlite -configuration $config -sdk $sdk
</div>There is no any error ,but only 10 bugs ,is it valid scan command ?<br></div></div></blockquote><br></div><div>That seems valid to me. I will note that Xcode currently handles bugs that span files due to function inlining, while scan-build does not (because we haven't taken the time to come up with a good way of displaying them in HTML). The current behavior is to ignore these bugs, with the idea that the user is at least getting <i>some</i> value out of the analyzer.</div><div><br></div><div>It's worth checking that at least some of the 10 bugs are a subset of the bugs you see in Xcode, though since checker-271 is newer they might be a bit different. (Also, it's fine to use checker-272 and later with Xcode 4.6 as well; checker-271's just the first release that took advantage of the extra hooks in Xcode.)</div><div><br></div><div>Jordan</div></body></html>