Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Tex-Twil

macrumors 68030
Original poster
May 28, 2008
2,501
15
Berlin
Hi,
I was reading the Ars Technica review of Snow Leopard and I have a question about the LVVM and Clang part. In the review they say that the LLVM compiler should report warning/errors more efficiently in xcode as gcc does.

I wanted to reproduce this:
static-analyzer.png


So I coded that same function in xcode, set the compiler to LLVM GCC 4.2 in the project preferences, build it but I don't see the same result.

What am I doing wrong ?

Thanks,
Tex
 
You must click on the error message for the arrows to appear. And the Analyzer doesn't run itself (unless you specify this in your build settings, which is recommended), so you do need to click Analyze under the Biild menu.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.