]> granicus.if.org Git - clang/commitdiff
[analyzer] MIGChecker: Enable by default as `osx.MIG'.
authorArtem Dergachev <artem.dergachev@gmail.com>
Fri, 22 Feb 2019 00:18:46 +0000 (00:18 +0000)
committerArtem Dergachev <artem.dergachev@gmail.com>
Fri, 22 Feb 2019 00:18:46 +0000 (00:18 +0000)
With r354643, the checker is feature-rich and polished enough.

rdar://problem/35380337

Differential Revision: https://reviews.llvm.org/D58397

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

include/clang/StaticAnalyzer/Checkers/Checkers.td
test/Analysis/mig.mm

index bf015c5b45af0ca9be341470833718c3fae686c6..072f54c408ee16b7d8e655113ad3246184ae09b7 100644 (file)
@@ -712,6 +712,11 @@ def MacOSKeychainAPIChecker : Checker<"SecKeychainAPI">,
   HelpText<"Check for proper uses of Secure Keychain APIs">,
   Documentation<HasDocumentation>;
 
+def MIGChecker : Checker<"MIG">,
+  HelpText<"Find violations of the Mach Interface Generator "
+           "calling convention">,
+  Documentation<NotDocumented>;
+
 def ObjCPropertyChecker : Checker<"ObjCProperty">,
   HelpText<"Check for proper uses of Objective-C properties">,
   Documentation<NotDocumented>;
@@ -828,15 +833,6 @@ def OSObjectCStyleCast : Checker<"OSObjectCStyleCast">,
 
 } // end "optin.osx"
 
-let ParentPackage = OSXAlpha in {
-
-def MIGChecker : Checker<"MIG">,
-  HelpText<"Find violations of the Mach Interface Generator "
-           "calling convention">,
-  Documentation<NotDocumented>;
-
-} // end "alpha.osx"
-
 let ParentPackage = CocoaAlpha in {
 
 def IvarInvalidationModeling : Checker<"IvarInvalidationModeling">,
index 5285065b066d700aa07d2dfd402e83daecd332cf..59442d39e4a12439716303320e41f311548664cf 100644 (file)
@@ -1,4 +1,4 @@
-// RUN: %clang_analyze_cc1 -w -analyzer-checker=core,alpha.osx.MIG\
+// RUN: %clang_analyze_cc1 -w -analyzer-checker=core,osx.MIG\
 // RUN:                       -analyzer-output=text -fblocks -verify %s
 
 typedef unsigned uint32_t;