diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2014-08-22 16:57:26 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2014-08-22 16:57:26 +0000 |
commit | 78e9debf68d4a2b7ae27fddf7665c8bd9638b6dc (patch) | |
tree | 8618f9b4146041d295126681727d7f546563572b /clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | |
parent | efd1375f2a441f759a9b6afc8df2802bb2e47291 (diff) | |
download | bcm5719-llvm-78e9debf68d4a2b7ae27fddf7665c8bd9638b6dc.tar.gz bcm5719-llvm-78e9debf68d4a2b7ae27fddf7665c8bd9638b6dc.zip |
Objective-C. Warn if user has made explicit call
to +initilize as this results in an extra call
to this method. rdar://16628028
llvm-svn: 216271
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp index eb699d69408..6e49fbb5d60 100644 --- a/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp @@ -1359,6 +1359,7 @@ RetainSummaryManager::getStandardMethodSummary(const ObjCMethodDecl *MD, // Check the method family, and apply any default annotations. switch (MD ? MD->getMethodFamily() : S.getMethodFamily()) { case OMF_None: + case OMF_initialize: case OMF_performSelector: // Assume all Objective-C methods follow Cocoa Memory Management rules. // FIXME: Does the non-threaded performSelector family really belong here? |