aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2011-04-30 06:46:45 +0000
committerTed Kremenek <kremenek@apple.com>2011-04-30 06:46:45 +0000
commita2a3da6503bb0738f91bb46863b586b37de47367 (patch)
tree78dcb992d5e4ab1745285e6047e1009d7a497812
parent87e945f0f1fb5778c4c6b9e61356c7f1571b9cb4 (diff)
Move the SelfInit checker to the 'cocoa.experimental' package.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130598 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/StaticAnalyzer/Checkers/Checkers.td8
-rw-r--r--test/Analysis/self-init.m2
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/StaticAnalyzer/Checkers/Checkers.td b/lib/StaticAnalyzer/Checkers/Checkers.td
index c5e3f6baab..1a71fc4074 100644
--- a/lib/StaticAnalyzer/Checkers/Checkers.td
+++ b/lib/StaticAnalyzer/Checkers/Checkers.td
@@ -278,10 +278,6 @@ def OSAtomicChecker : Checker<"AtomicCAS">,
let ParentPackage = Cocoa in {
-def ObjCSelfInitChecker : Checker<"SelfInit">,
- HelpText<"Check that 'self' is properly initialized inside an initializer method">,
- DescFile<"ObjCSelfInitChecker.cpp">;
-
def ObjCAtSyncChecker : Checker<"AtSync">,
HelpText<"Check for null pointers used as mutexes for @synchronized">,
DescFile<"ObjCAtSyncChecker.cpp">;
@@ -319,6 +315,10 @@ def NSErrorChecker : Checker<"NSError">,
let ParentPackage = CocoaExperimental in {
+def ObjCSelfInitChecker : Checker<"SelfInit">,
+ HelpText<"Check that 'self' is properly initialized inside an initializer method">,
+ DescFile<"ObjCSelfInitChecker.cpp">;
+
def ObjCDeallocChecker : Checker<"Dealloc">,
HelpText<"Warn about Objective-C classes that lack a correct implementation of -dealloc">,
DescFile<"CheckObjCDealloc.cpp">;
diff --git a/test/Analysis/self-init.m b/test/Analysis/self-init.m
index 35701c43e5..92006a6d24 100644
--- a/test/Analysis/self-init.m
+++ b/test/Analysis/self-init.m
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -analyze -analyzer-checker=osx.cocoa.SelfInit %s -verify
+// RUN: %clang_cc1 -analyze -analyzer-checker=osx.cocoa.experimental.SelfInit %s -verify
@class NSZone, NSCoder;
@protocol NSObject