Mac XCode and LLVM

Tex-Twil

macrumors 68020
Original poster
May 28, 2008
2,477
10
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:


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
 

gnasher729

macrumors P6
Nov 25, 2005
16,696
3,428
That message doesn't come from the compiler, but from the static analyser.
 
Comment

rossipoo

macrumors regular
Jun 7, 2009
109
0
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.
 
Comment

Similar threads

  • wlisik
14
Replies
14
Views
2K
  • jasnw
2
Replies
2
Views
853
  • gimmesomemo
1
Replies
1
Views
660
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.