LLVM/Clang Static Analyzer使ってみた
下記のサイトを参考に、使ってみた。
http://recotana.com/recotanablog/?p=305
arm-apple-darwin9-gcc-4.0.1がないよ!と言われたので以下の処理をしたら動いた。
ln -s /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1 /Developer/usr/bin/arm-apple-darwin9-gcc-4.0.1
scan-build --view xcodebuild
で起動。buildディレクトリは消しておいてね。
--view が無いと見るのが面倒。