From: Ted Kremenek Date: Thu, 15 Oct 2009 22:26:21 +0000 (+0000) Subject: Educate the retain/release checker about [NSCursor dragCopyCursor]. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e622554767b56d9dbe61ae07dda839db1803df34;p=clang Educate the retain/release checker about [NSCursor dragCopyCursor]. This fixes git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84213 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 2da0297e41..49cd4151a6 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -1441,6 +1441,11 @@ void RetainSummaryManager::InitializeClassMethodSummaries() { getPersistentSummary(RetEffect::MakeNoRet(), DoNothing, Autorelease)); + // Create a summary for [NSCursor dragCopyCursor]. + addClassMethSummary("NSCursor", "dragCopyCursor", + getPersistentSummary(RetEffect::MakeNoRet(), DoNothing, + DoNothing)); + // Create the summaries for [NSObject performSelector...]. We treat // these as 'stop tracking' for the arguments because they are often // used for delegates that can release the object. When we have better