Showing posts with label analyzer. Show all posts
Showing posts with label analyzer. Show all posts

Thursday, November 24, 2011

xcode code analyzer

Clang is the code analyzer, will direct you to fix the dirty code.

You can refer the below links to know better usage.

http://iphonedevelopertips.com/xcode/static-code-analysis-clang-and-xcode-3-2.html

http://clang-analyzer.llvm.org/xcode.html

http://blog.llvm.org/2010/04/amazing-feats-of-clang-error-recovery.html

As of now Clang complier is not available for Xcode 4 (available for Xcode 3.2), it has the default LLVM GCC 4.2 complier. We may get that in future release, to know the error code message better.

Additional:

You must build your code using this Analyzer to fix the potential memory leaks and other issues.

http://clang-analyzer.llvm.org/xcode.html

If you are using,
Xcode 3: Build > Build and Analyze
Xcode 4: Select Product > Analyze.