[cfe-dev] Can't exec "clang++" Problem

凌欢 linghuan713 at 126.com
Tue May 14 00:13:32 PDT 2013

hi, Jordan:
1) For the argument  "--use-c++", I added it to three projects, and then I found it worked while the scan-build whitout no applying patch for two projects.
 2) And the third one still report "clang++" problem whatever the xcode verison is 4.5.x or 4.6 ,or based (or not ) the patch for scan-build chekcer-274.
3) Inclosed file is the scan script and scan-build log for the third project. It thinks that "-use-c++" does work for some iOS projects.
Howard Ling
E-mail:    linghuan713 at 126.com
在 2013-05-14 08:24:33,"Jordan Rose" <jordan_rose at apple.com> 写道:

On May 12, 2013, at 20:15 , 凌欢 <linghuan713 at 126.com> wrote:

Hi, Jordan:
I got a fully test for the "Clang++" problem:
1) when I add the argument --use-cc++ ,it had been prompted :
scan-build: unrecognized option '--use-cc++=/Applications/xcode4.6_sdk6.1/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++'
Incloesd file is the scan script, I am not sure whether the other argument are conflicted with the  --use-cc++.

The flag is --use-c++, not --use-cc++. But...

2 ) For the same scan-build command in the scan.sh, if I apply the scan-build.patch ,the "clang++" problem can be resolved.
     if i don't apply ,the problem will be still exist.
     All the test is based on the xcode4.6.

...it sounds like everything is working—with Xcode 4.6, anyway—when the patch is applied! Is that correct? 

3) The inclosed file scan-build is had been apply patch while the another file scan-build.bak is not.
4)  By the way ,would you have a plan to release the patch on the next release checker?

I wanted to confirm that the patch actually does fix your issue before pushing it back to the Clang repository, but then yes, it will go out in the next checker build, which should be soon.

Thank you for testing everything! So one more time, before I commit: scan-build works with Xcode 4.6 if the patch is applied?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130514/01e87154/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scan4.6.1.zip
Type: application/x-zip-compressed
Size: 94630 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130514/01e87154/attachment.bin>

More information about the cfe-dev mailing list