<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>Hi, Jordan:<br>I got a fully test for the "Clang++" problem:</div><div><strong>1)</strong> when I add the argument --use-cc++ ,it had been prompted :</div><div><!--StartFragment --><div>
<strong>scan-build: unrecognized option '--use-cc++=/Applications/xcode4.6_sdk6.1/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'
</strong></div><div>Incloesd file is the scan script, I am not sure whether the other argument are conflicted with the  --use-cc++.</div><div><strong>2 ) </strong>For the same scan-build command in the scan.sh, if I apply the scan-build.patch ,the "clang++" problem can be resolved.</div><div>     if i don't apply ,the problem will be still exist. </div><div>     All the test is based on the xcode4.6. </div><div><strong>3)</strong> The inclosed file scan-build is had been apply patch while the another file scan-build.bak is not.</div><div><strong>4)</strong>  By the way ,would you have a plan to release the patch on the next release checker?</div><div> </div><div>Thanks.<br>BRs</div></div><div><div>
<div>Howard Ling </div>
<div>*****************************************************</div>
<div> </div>
<div>E-mail:    <a href="mailto:linghuan713@126.com">linghuan713@126.com</a></div>
<div> </div>
<div>*****************************************************</div></div></div><div id="divNeteaseMailCard"></div><div></div>At 2013-05-11 09:58:15,"Jordan Rose" <jordan_rose@apple.com> wrote:<br> <blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" id="isReplyContent"><div>You can open Xcode 4.5 projects in Xcode 4.6 without updating the project files...but no, of course checker-274 should support Xcode 4.5. However, we've had plenty of trouble trying to get the iOS settings just right for scan-build, and the new integration with Xcode 4.6 should make a lot of those problems go away.</div><div><br></div><div>I'd really like to figure out what's going on, but if you just want to get unblocked at this point, John's point about --use-c++ <i>should</i> work...</div><div><br></div><div>/data/checker/scan-build -o report --use-cc=$clang_path --use-c++=${clang_path}++ $xcode_path -target TARGET -configuration Scan -sdk iphonesimulator6.0</div><div><br></div><div>...but if it doesn't, it's possible that the iOS 6 SDK just doesn't work with scan-build's old way of doing things. I do know it can work with the new way because it works on my machine. :-/</div><div><br></div><div>The only thing I can think of is that your scan-build script is somehow messed up. Would you mind sending that to me as well, so I can compare it against the one in my copy of checker-274 and the one in trunk?</div><div><br></div><div>Jordan</div><div><br></div><br><div><div>On May 9, 2013, at 22:30 , Á軶 <<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-family: arial; font-size: 14px;"><div>hi ,Jordan:</div><div>My projects is all the xcode4.5 version.</div><div>Do you mean the checker-274 is only supported by Xcode 4.6?<br>BRs</div><div>
<div>Howard Ling </div>
<div>*****************************************************</div>
<div> </div>
<div>E-mail:    <a href="mailto:linghuan713@126.com">linghuan713@126.com</a></div>
<div> </div>
<div>*****************************************************</div></div><div></div><div></div>ÔÚ 2013-05-10 00:50:51£¬"Jordan Rose" <<a href="mailto:jordan_rose@apple.com">jordan_rose@apple.com</a>> Ð´µÀ£º<br> <blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" id="isReplyContent"><div>Sorry, yes, this won't work on Xcode 4.5.2. Can you try with Xcode 4.6?</div><div><br></div><br><div><div>On May 8, 2013, at 19:45 , Á軶 <<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-family: arial; font-size: 14px;"><div style="line-height: 1.7; font-family: arial; font-size: 14px;"><div>Hi£¬ Jordan:</div><div>The value of "echo $xcode_path" is something like this:<br><em>/Applications/xcode4.5.2_sdk6.0/Contents/Developer/usr/bin/xcodebuild (a</em><em>bsolute path</em><em>)</em></div><div>and my scan-build is upgraded to checker-274.</div><div><em></em>Inclosed zip file is the scan script and the scan log.</div><div>Thanks Jordan.:)</div><div><br> BRs</div><div>
<div>Howard Ling </div>
<div>*****************************************************</div>
<div> </div>
<div>E-mail:    <a href="mailto:linghuan713@126.com">linghuan713@126.com</a></div>
<div> </div>
<div>*****************************************************</div></div><div></div><div></div>At 2013-05-08 09:42:05,"Jordan Rose" <<a href="mailto:jordan_rose@apple.com">jordan_rose@apple.com</a>> wrote:<br> <blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" id="isReplyContent"><div>I'm really not sure where to go from here. This works for me on OS X 10.8 with Xcode 4.6:</div><div><br></div><div><blockquote type="cite">~clang/tools/scan-build/scan-build --use-analyzer ~clang/build/bin/Release/clang ~L/Applications/Xcode4.6.app/Contents/Developer/usr/bin/xcodebuild</blockquote></div><div><br></div><div>(where ~clang and ~L are shell directory aliases)</div><div><br></div><div>The account I'm on doesn't have a certificate installed, so I built for the simulator instead.</div><div><br></div><div>The one thing I can think of (with the patch applied) is that $xcode_path doesn't actually expand to an executable named "xcodebuild" but rather a wrapper script or symlink around xcodebuild.</div><div><br></div><div>Can you send me a full transcript of your scan-build invocation and everything the 4.6 xcodebuild spits back out? The results of "echo $xcode_path" would help too.</div><div><br></div><div>(You said checker-274, right?)</div><div>Jordan</div><div><br></div><br><div><div>On May 2, 2013, at 20:02 , Á軶 <<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-family: arial; font-size: 14px;"><div>Hi, All:</div><div>Has any update for thie case?</div><div>Thank you.<br>BRs</div><div>
<div>Howard Ling </div>
<div>*****************************************************</div>
<div> </div>
<div>E-mail:    <a href="mailto:linghuan713@126.com">linghuan713@126.com</a></div>
<div> </div>
<div>*****************************************************</div></div><div></div><div></div>At 2013-05-02 09:40:38,"Á軶" <<a href="mailto:linghuan713@126.com">linghuan713@126.com</a>> wrote:<br> <blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid; position: static; z-index: auto;" id="isReplyContent"><div style="line-height: 1.7; font-family: arial; font-size: 14px;">hi, Jordan:<div>I use the following two xcode versions: <br><div><div><i>/Applications/xcode4.6_sdk6.1/Contents/Developer/usr/bin/xcodebuild -version</i></div><div><b><i>Xcode 4.6</i></b></div><div><b><i>Build version 4H127</i></b></div></div><div><b><i><br></i></b></div><div><div style="font-style: italic;">$ /Applications/Xcode60.app/Contents/Developer/usr/bin/xcodebuild -version</div><div style="font-style: italic; font-weight: bold;">Xcode 4.5</div><div style="font-style: italic; font-weight: bold;">Build version 4G144l</div><div style="font-style: italic; font-weight: bold;"><br></div><div>Two xcode version report the same error.</div></div><div>Thanks.</div><div><b><i><br></i></b></div><div><br></div><div><span style="line-height: 1.7;">BRs</span><br><div>
<div>Howard Ling</div></div><div></div><br>At 2013-04-30 06:22:19,"Jordan Rose" <<a href="mailto:jordan_rose@apple.com">jordan_rose@apple.com</a>> wrote:<br> <blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" id="isReplyContent"><div>Hm. What do you get from $xcode_path -version? That's what scan-build is checking for.</div><div><br></div><div>Sorry for the slowness of remote-debugging.</div><div>Jordan</div><div><br></div><br><div><div>On Apr 28, 2013, at 3:51 , Á軶 <<a href="mailto:linghuan713@126.com">linghuan713@126.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="text-transform: none; text-indent: 0px; letter-spacing: normal; word-spacing: 0px; white-space: normal; -webkit-text-stroke-width: 0px;"><div style="line-height: 1.7; font-family: arial; font-size: 14px;"><div>hi, jordan:</div><div> </div><div><strong>After applyed the path ,the same error is still reported</strong><span class="Apple-converted-space"> </span>.</div><div>Sorry for my delay response :) .</div><div><br>BRs</div><div><div>Howard Ling</div><div> </div></div><div>At 2013-04-26 01:55:21,"Jordan Rose" <<a href="mailto:jordan_rose@apple.com">jordan_rose@apple.com</a>> wrote:<br></div><blockquote style="margin: 0px 0px 0px 0.8ex; padding-left: 1ex; border-left-color: rgb(204, 204, 204); border-left-width: 1px; border-left-style: solid;" id="isReplyContent"><div>Aha, scan-build currently uses the system xcodebuild to detect the installed version, not the one you specify on the command line. Does this patch clear things up, Howard?</div><div><br></div><div>Jordan</div></blockquote></div></div></blockquote></div><br></blockquote></div></div></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></blockquote></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span></blockquote></div><br></blockquote></div></div><span><scan.zip></span></blockquote></div><br></blockquote></div></blockquote></div><br></blockquote></div><br><br><span title="neteasefooter"><span id="netease_mail_footer"></span></span>