]> granicus.if.org Git - clang/commitdiff
[analyzer] Move ObjCSuperDeallocChecker out of the alpha package.
authorDevin Coughlin <dcoughlin@apple.com>
Wed, 2 Mar 2016 22:01:03 +0000 (22:01 +0000)
committerDevin Coughlin <dcoughlin@apple.com>
Wed, 2 Mar 2016 22:01:03 +0000 (22:01 +0000)
It will now be on by default on Darwin.

rdar://problem/6953275

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@262526 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/Checkers.td
test/Analysis/DeallocUseAfterFreeErrors.m

index 16b8279c53c9fca9301ad540ce7b78d08ec13a40..a674af7be0ef3f6555a22fcb0553c5d802f51976 100644 (file)
@@ -509,14 +509,14 @@ def ObjCDeallocChecker : Checker<"Dealloc">,
   HelpText<"Warn about Objective-C classes that lack a correct implementation of -dealloc">,
   DescFile<"CheckObjCDealloc.cpp">;
 
-} // end "osx.cocoa"
-
-let ParentPackage = CocoaAlpha in {
-
 def ObjCSuperDeallocChecker : Checker<"SuperDealloc">,
   HelpText<"Warn about improper use of '[super dealloc]' in Objective-C">,
   DescFile<"ObjCSuperDeallocChecker.cpp">;
 
+} // end "osx.cocoa"
+
+let ParentPackage = CocoaAlpha in {
+
 def InstanceVariableInvalidation : Checker<"InstanceVariableInvalidation">,
   HelpText<"Check that the invalidatable instance variables are invalidated in the methods annotated with objc_instance_variable_invalidator">,
   DescFile<"IvarInvalidationChecker.cpp">;
index 2902be694bb4417301813300a19043f0189c8a0c..3feeb6d7482c7e09d3bf6a275bf9b33d895a327b 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -analyze -analyzer-checker=core,alpha.osx.cocoa.SuperDealloc,debug.ExprInspection -analyzer-output=text -verify %s
+// RUN: %clang_cc1 -analyze -analyzer-checker=core,osx.cocoa.SuperDealloc,debug.ExprInspection -analyzer-output=text -verify %s
 
 void clang_analyzer_warnIfReached();