summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2012-05-01 05:28:27 +0000
committerTed Kremenek <kremenek@apple.com>2012-05-01 05:28:27 +0000
commit555560c49024d0a1e7dd67bebcb5e478c67c6d9c (patch)
tree69c3e8ba53026d09b3f469b32b9fd0781fabb4a7 /clang/lib/StaticAnalyzer
parentb91cd6687c3c4ca79fac16dbef0c991a185fa19e (diff)
downloadbcm5719-llvm-555560c49024d0a1e7dd67bebcb5e478c67c6d9c.tar.gz
bcm5719-llvm-555560c49024d0a1e7dd67bebcb5e478c67c6d9c.zip
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.
llvm-svn: 155887
Diffstat (limited to 'clang/lib/StaticAnalyzer')
-rw-r--r--clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
index f7012799b8d..2a97e1c24a7 100644
--- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
+++ b/clang/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 <rdar://problem/6961230>. (IOKit)
OpenPOWER on IntegriCloud