[analyzer] Disable objc leaks checker.

This commit is contained in:
Eloy Durán
2013-11-13 17:59:21 +01:00
parent 44f279e68f
commit b3864c0cfc

View File

@@ -61,8 +61,12 @@ task :build => targets.map { |x| "build:#{x}" }
desc "Run the clang static analyzer against the source"
task :analyze do
ENV['DEBUG'] = '1'
sh './static-analyzer/scan-build --view --use-analyzer=/usr/bin/clang --use-cc=/usr/bin/clang --use-c++=/usr/bin/clang++ -o ./static-analysis rake'
options = []
options << '--view'
options << '-disable-checker osx.cocoa.RetainCount'
options << '--use-analyzer=/usr/bin/clang'
options << '--use-cc=/usr/bin/clang --use-c++=/usr/bin/clang++'
sh "./static-analyzer/scan-build #{options.join(' ')} -o ./static-analysis rake DEBUG=1"
end
targets.each do |target|