Using a checker plugin in Xcode

I’m writing a suite of checkers that I’d like to wrap as a checker plugin that I can then distribute to my team with a custom Xcode template to load and execute the checkers when the analyzer is run. However, I cannot find any information of the project settings I’d need to configure to get the analyzer to load my plugin. Is this possible? If so, how would I go about it?

Any assistance is gratefully received.

– Neil

I’m writing a suite of checkers that I’d like to wrap as a checker plugin that I can then distribute to my team with a custom Xcode template to load and execute the checkers when the analyzer is run. However, I cannot find any information of the project settings I’d need to configure to get the analyzer to load my plugin. Is this possible? If so, how would I go about it?

Unfortunately, checker plugins is an experimental feature, they are not supported. Furthermore, there is currently no way to use them with the compiler shipped with Xcode.

I would suggest building your own clang, extended with the checkers, and use the set-xcode-analyzer script to point Xcode to your own clang for analyzes. (http://clang-analyzer.llvm.org/xcode.html)

Cheers,
Anna.

Thanks, Anna. I suspected as much.

– Neil