Commit 37fb2dfc authored by Samuel E. Giddins's avatar Samuel E. Giddins

Merge branch 'kommen-analyzer-disable-all-checks'

parents 67d5c590 5cb19922
...@@ -46,6 +46,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre` ...@@ -46,6 +46,11 @@ To install release candidates run `[sudo] gem install cocoapods --pre`
[Samuel Giddins](https://github.com/segiddins) [Samuel Giddins](https://github.com/segiddins)
[#2160](https://github.com/CocoaPods/CocoaPods/issues/2160) [#2160](https://github.com/CocoaPods/CocoaPods/issues/2160)
* Use `-analyzer-disable-all-checks` to disable static analyzer for
pods with `inhibit_warnings` enabled (requires Xcode >= 6.1).
[Dieter Komendera](https://github.com/kommen)
[#2402](https://github.com/CocoaPods/CocoaPods/issues/2402)
##### Bug Fixes ##### Bug Fixes
* Added recursive support to the public headers of vendored frameworks * Added recursive support to the public headers of vendored frameworks
......
...@@ -235,7 +235,7 @@ module Pod ...@@ -235,7 +235,7 @@ module Pod
end end
end end
if target_definition.inhibits_warnings_for_pod?(consumer.spec.root.name) if target_definition.inhibits_warnings_for_pod?(consumer.spec.root.name)
flags << '-w -Xanalyzer -analyzer-disable-checker -Xanalyzer deadcode' flags << '-w -Xanalyzer -analyzer-disable-all-checks'
end end
flags * ' ' flags * ' '
end end
......
...@@ -208,12 +208,12 @@ module Pod ...@@ -208,12 +208,12 @@ module Pod
@installer.target.target_definition.stubs(:inhibits_warnings_for_pod?).returns(true) @installer.target.target_definition.stubs(:inhibits_warnings_for_pod?).returns(true)
flags = @installer.send(:compiler_flags_for_consumer, @spec.consumer(:ios), true) flags = @installer.send(:compiler_flags_for_consumer, @spec.consumer(:ios), true)
flags.should.include?('-Xanalyzer -analyzer-disable-checker') flags.should.include?('-Xanalyzer -analyzer-disable-all-checks')
end end
it "doesn't inhibit analyzer warnings by default" do it "doesn't inhibit analyzer warnings by default" do
flags = @installer.send(:compiler_flags_for_consumer, @spec.consumer(:ios), true) flags = @installer.send(:compiler_flags_for_consumer, @spec.consumer(:ios), true)
flags.should.not.include?('-Xanalyzer -analyzer-disable-checker') flags.should.not.include?('-Xanalyzer -analyzer-disable-all-checks')
end end
describe 'concerning ARC before and after iOS 6.0 and OS X 10.8' do describe 'concerning ARC before and after iOS 6.0 and OS X 10.8' do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment