]> granicus.if.org Git - clang/commit
[analyzer] Remove unused ARCNotOwnedSymbol retain count return effect.
authorJordan Rose <jordan_rose@apple.com>
Tue, 7 Jan 2014 21:39:41 +0000 (21:39 +0000)
committerJordan Rose <jordan_rose@apple.com>
Tue, 7 Jan 2014 21:39:41 +0000 (21:39 +0000)
commit52993f176ae750940e874c7c11d1cc377f4991bb
tree3bcfe59c5e436e68b3cc022c76e3104985355e9c
parentb043bda69d0a443bcffe80b4c83861fa853fb0bd
[analyzer] Remove unused ARCNotOwnedSymbol retain count return effect.

RetainCountChecker has to track returned object values to know if they are
retained or not. Under ARC, even methods that return +1 are tracked by the
system and should be treated as +0. However, this effect behaves exactly
like NotOwned(ObjC), i.e. a generic Objective-C method that actually returns
+0, so we don't need a special case for it.

No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198709 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/StaticAnalyzer/Checkers/ObjCRetainCount.h
lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp