Is there any interest in adding a task or configuration to build with Clang's Static Analyzer? If so, I'd be interested in getting a handle on what would be required.
I recently hacked an analyze task into the xcode namespace on a project. It required an installation of clang's scan-build, and it simply shelled out to xcodebuild manually. It is handy tool – scan-build produces html or plist-based reports from the analysis.
It seems to me like the implementation would involve an xcode:analyze task that could prefix the command in xcode_build.rb with scan-build (the installation being set via an environment variable).
It's a crude implementation, but no matter what I think the task would be a nice addition. Any thoughts?
Is there any interest in adding a task or configuration to build with Clang's Static Analyzer? If so, I'd be interested in getting a handle on what would be required.
I recently hacked an
analyzetask into thexcodenamespace on a project. It required an installation of clang's scan-build, and it simply shelled out toxcodebuildmanually. It is handy tool –scan-buildproduces html or plist-based reports from the analysis.It seems to me like the implementation would involve an
xcode:analyzetask that could prefix the command in xcode_build.rb withscan-build(the installation being set via an environment variable).It's a crude implementation, but no matter what I think the task would be a nice addition. Any thoughts?