From c46f81b101877631fa883a97f4a0ab03bbc54780 Mon Sep 17 00:00:00 2001 From: Artem Dergachev Date: Fri, 22 Feb 2019 00:18:46 +0000 Subject: [PATCH] [analyzer] MIGChecker: Enable by default as `osx.MIG'. 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 | 14 +++++--------- test/Analysis/mig.mm | 2 +- 2 files changed, 6 insertions(+), 10 deletions(-) diff --git a/include/clang/StaticAnalyzer/Checkers/Checkers.td b/include/clang/StaticAnalyzer/Checkers/Checkers.td index bf015c5b45..072f54c408 100644 --- a/include/clang/StaticAnalyzer/Checkers/Checkers.td +++ b/include/clang/StaticAnalyzer/Checkers/Checkers.td @@ -712,6 +712,11 @@ def MacOSKeychainAPIChecker : Checker<"SecKeychainAPI">, HelpText<"Check for proper uses of Secure Keychain APIs">, Documentation; +def MIGChecker : Checker<"MIG">, + HelpText<"Find violations of the Mach Interface Generator " + "calling convention">, + Documentation; + def ObjCPropertyChecker : Checker<"ObjCProperty">, HelpText<"Check for proper uses of Objective-C properties">, Documentation; @@ -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; - -} // end "alpha.osx" - let ParentPackage = CocoaAlpha in { def IvarInvalidationModeling : Checker<"IvarInvalidationModeling">, diff --git a/test/Analysis/mig.mm b/test/Analysis/mig.mm index 5285065b06..59442d39e4 100644 --- a/test/Analysis/mig.mm +++ b/test/Analysis/mig.mm @@ -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; -- 2.40.0