From: Ted Kremenek Date: Sat, 30 Apr 2011 06:46:45 +0000 (+0000) Subject: Move the SelfInit checker to the 'cocoa.experimental' package. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a2a3da6503bb0738f91bb46863b586b37de47367;p=clang 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 --- 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