3 ms·
Clang static analyzer is about checking logic errors - unused variables, memory leaks, etc. OCLint does things like warn if there are too many non-comment-line
by kennywinker 9y ago
Clang static analyzer is about checking logic errors - unused variables, memory leaks, etc.
OCLint does things like warn if there are too many non-comment-lines-of-code in a method, or too many methods per class. It's more about keeping tabs on complexity and code cleanlyness than true static analysis.
Ideally, use both! If you're using Xcode you can enable "analyze" for all builds. Highly recommended if it doesn't break your build times.