]> granicus.if.org Git - clang/commit
Fix: <rdar://problem/6850275> CF objects returned from methods with "new" or "copy...
authorTed Kremenek <kremenek@apple.com>
Sun, 3 May 2009 06:08:32 +0000 (06:08 +0000)
committerTed Kremenek <kremenek@apple.com>
Sun, 3 May 2009 06:08:32 +0000 (06:08 +0000)
commit92511433cc78021dca5f340136be1bbd72388191
tree7aac99991a4b8b67daa3ec3fe45f91cc228c1e81
parent586d6a81428da2d1ce70bcb98df29d749361cbf3
Fix: <rdar://problem/6850275> CF objects returned from methods with "new" or "copy" in their name should be treated as owned

For methods that follow the "fundamental rule" and return Core
Foundation objects, treat those objects as owned by the caller.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70665 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/CFRefCount.cpp
test/Analysis/NSString.m