From: Ted Kremenek Date: Tue, 1 May 2012 05:28:27 +0000 (+0000) Subject: Teach RetainCountchecker about IORegistryEntrySearchCFProperty returning retained... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=537dd3a8c87765245aad792a3356852a87380a30;p=clang Teach RetainCountchecker about IORegistryEntrySearchCFProperty returning retained objects. I know there is an SDK enhancement request for this to have the cf_returns_retained annotation, so this is just a stop gap. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155887 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp index f7012799b8..2a97e1c24a 100644 --- a/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp @@ -941,6 +941,7 @@ const RetainSummary * RetainSummaryManager::getSummary(const FunctionDecl *FD) { } else if (FName == "IOBSDNameMatching" || FName == "IOServiceMatching" || FName == "IOServiceNameMatching" || + FName == "IORegistryEntrySearchCFProperty" || FName == "IORegistryEntryIDMatching" || FName == "IOOpenFirmwarePathMatching") { // Part of . (IOKit)