]> granicus.if.org Git - clang/commit
[analyzer] Use output form collections’ count to decide if ObjC for loop should be...
authorAnna Zaks <ganna@apple.com>
Sat, 22 Jun 2013 00:23:26 +0000 (00:23 +0000)
committerAnna Zaks <ganna@apple.com>
Sat, 22 Jun 2013 00:23:26 +0000 (00:23 +0000)
commit2ffcd18b845d4f855074ff7011c46e20616e08fd
tree75ef000b63a3a5d78b1ec0e62530fcbcf708fc8f
parent4c98b1f67cdf385e05a86d54201b319cf1f1c042
[analyzer] Use output form collections’ count to decide if ObjC for loop should be entered

This fixes false positives by allowing us to know that a loop is always entered if
the collection count method returns a positive value and vice versa.

Addresses radar://14169391.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@184618 91177308-0d34-0410-b5e6-96231b3b80d8
lib/StaticAnalyzer/Checkers/BasicObjCFoundationChecks.cpp
test/Analysis/NSContainers.m
test/Analysis/objc-for.m