forked from OSchip/llvm-project
[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 llvm-svn: 354644
This commit is contained in:
parent
7bc7d0441c
commit
fb1052d5f1
|
@ -712,6 +712,11 @@ def MacOSKeychainAPIChecker : Checker<"SecKeychainAPI">,
|
||||||
HelpText<"Check for proper uses of Secure Keychain APIs">,
|
HelpText<"Check for proper uses of Secure Keychain APIs">,
|
||||||
Documentation<HasDocumentation>;
|
Documentation<HasDocumentation>;
|
||||||
|
|
||||||
|
def MIGChecker : Checker<"MIG">,
|
||||||
|
HelpText<"Find violations of the Mach Interface Generator "
|
||||||
|
"calling convention">,
|
||||||
|
Documentation<NotDocumented>;
|
||||||
|
|
||||||
def ObjCPropertyChecker : Checker<"ObjCProperty">,
|
def ObjCPropertyChecker : Checker<"ObjCProperty">,
|
||||||
HelpText<"Check for proper uses of Objective-C properties">,
|
HelpText<"Check for proper uses of Objective-C properties">,
|
||||||
Documentation<NotDocumented>;
|
Documentation<NotDocumented>;
|
||||||
|
@ -828,15 +833,6 @@ def OSObjectCStyleCast : Checker<"OSObjectCStyleCast">,
|
||||||
|
|
||||||
} // end "optin.osx"
|
} // 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 {
|
let ParentPackage = CocoaAlpha in {
|
||||||
|
|
||||||
def IvarInvalidationModeling : Checker<"IvarInvalidationModeling">,
|
def IvarInvalidationModeling : Checker<"IvarInvalidationModeling">,
|
||||||
|
|
|
@ -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
|
// RUN: -analyzer-output=text -fblocks -verify %s
|
||||||
|
|
||||||
typedef unsigned uint32_t;
|
typedef unsigned uint32_t;
|
||||||
|
|
Loading…
Reference in New Issue