]> granicus.if.org Git - clang/commitdiff
[analyzer] Make osx.cocos.CFContainersSyntax a default checker.
authorAnna Zaks <ganna@apple.com>
Mon, 30 Jan 2012 19:12:37 +0000 (19:12 +0000)
committerAnna Zaks <ganna@apple.com>
Mon, 30 Jan 2012 19:12:37 +0000 (19:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149258 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Checkers/Checkers.td
test/Analysis/CFContainers.mm

index f7c2a5735f0e97cccefd45e4ada01df597283ec5..e8be816de4b6d4e37e7bfd01b69f8363e96ca22b 100644 (file)
@@ -364,14 +364,14 @@ def RetainCountChecker : Checker<"RetainCount">,
   HelpText<"Check for leaks and improper reference count management">,
   DescFile<"RetainCountChecker.cpp">;
 
+def ObjCContainersASTChecker : Checker<"CFContainersSyntax">,
+  HelpText<"Check for common pitfalls when using 'CFArray', 'CFDictionary', 'CFSet' APIs">,
+  DescFile<"ObjCContainersASTChecker.cpp">;  
+
 } // end "cocoa"
 
 let ParentPackage = CocoaExperimental in {
 
-def ObjCContainersASTChecker : Checker<"ContainerAPI">,
-  HelpText<"Check for common pitfalls when using 'CFArray', 'CFDictionary', 'CFSet' APIs">,
-  DescFile<"ObjCContainersASTChecker.cpp">;
-
 def ObjCContainersChecker : Checker<"Containers">,
   HelpText<"Deep checks for common pitfalls when using 'CFArray' APIs">,
   DescFile<"ObjCContainersChecker.cpp">;
index cead1d3ca989e6aa3e5babef9d70bd988ff7b128..836614070e3c9a3ac6a281c20158b09c18d54e97 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -analyze -analyzer-checker=experimental.osx.cocoa.ContainerAPI,experimental.osx.cocoa.Containers -analyzer-store=region -triple x86_64-apple-darwin -verify %s
+// RUN: %clang_cc1 -analyze -analyzer-checker=osx.cocoa.CFContainersSyntax,experimental.osx.cocoa.Containers -analyzer-store=region -triple x86_64-apple-darwin -verify %s
 
 typedef const struct __CFAllocator * CFAllocatorRef;
 typedef const struct __CFString * CFStringRef;