Clang Static Analyzer for Xcode4

2019-08-07 23:34发布

问题:

Do we still need Clang Static Analyzer for XCode4? or the built in one is already good enough to use?

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

If not, anyone know how to integrate the above one with Xcode4?

Thanks

回答1:

The built-in static analyzer uses Clang to generate its results. You should see nearly identical (or better) output from the “Build” > “Build and Analyze...” command.



回答2:

Just to add to Noah's answer... The Static Analyzer is great!

You can turn it on to run by default every-time you build. This helps catch problems faster.

The only exception is if you have a very large project and static analysis takes a long time. For most projects it should be a good idea.