views:

183

answers:

2

Hi,

Could somebody please help me get Clang up and running? (I don't have 3.2)

I've followed numerous tutorials (basically every link off of this page http://stackoverflow.com/questions/961844/using-clang-static-analyzer-from-within-xcode) but I just cant get it to work!

The only thing I've managed to do successfully so far is download clang! Grrrr .... dubbeat smash!

Bear in mind I've never written an apple script before.

I have clang on my desktop

A: 

The easiest way is to just update to Xcode 3.2.1 - using clang then becomes a no-brainer - nothing to install or configure - just set the compiler to Clang LLVM 1.0 in the project settings.

Paul R
Do you know if 3.2 can be downloaded at all instead of being posted on cd ?
dubbeat
Sure - just go to http://developer.apple.com and download it.
Paul R
I'll admit defeat scan-build xcodebuild -configuration Debug clean;scan-build -V xcodebuild -configuration Debugdubs-mac:~ dub$ cd '/Users/dub/Desktop/Barry Apps/MyApp2';scan-build xcodebuild -configuration Debug clean;scan-build -V xcodebuild -configuration Debug-bash: scan-build: command not found-bash: scan-build: command not founddubs-mac-mini:MyApp2 dub$
dubbeat
No idea - sorry - what's scan-build ? Is that the Clang static analysis driver for Xcode ?
Paul R
It sure is. I was working off of this tutorialhttp://allancraig.net/blog/?p=381.No Biggie, was just curious what I doing wrong
dubbeat
I think that tutorial is now pretty much redundant since Xcode 3.2 was released with Clang LLVM. Have fun.
Paul R
+1  A: 

I don't user the Clang Static Analyzer but there's a built in static analysis in XCode 3.2:

http://developer.apple.com/mac/library/featuredarticles/StaticAnalysis/index.html

schaechtele