mirror of
https://github.com/intel/llvm.git
synced 2026-01-21 12:19:23 +08:00
[analyzer] Move checker alpha.osx.cocoa.MissingSuperCall out of alpha category.
llvm-svn: 201640
This commit is contained in:
@@ -412,6 +412,10 @@ def ObjCNonNilReturnValueChecker : Checker<"NonNilReturnValue">,
|
||||
HelpText<"Model the APIs that are guaranteed to return a non-nil value">,
|
||||
DescFile<"BasicObjCFoundationChecks.cpp">;
|
||||
|
||||
def ObjCSuperCallChecker : Checker<"MissingSuperCall">,
|
||||
HelpText<"Warn about Objective-C methods that lack a necessary call to super">,
|
||||
DescFile<"ObjCMissingSuperCallChecker.cpp">;
|
||||
|
||||
def NSErrorChecker : Checker<"NSError">,
|
||||
HelpText<"Check usage of NSError** parameters">,
|
||||
DescFile<"NSErrorChecker.cpp">;
|
||||
@@ -444,10 +448,6 @@ def DirectIvarAssignmentForAnnotatedFunctions : Checker<"DirectIvarAssignmentFor
|
||||
HelpText<"Check for direct assignments to instance variables in the methods annotated with objc_no_direct_instance_variable_assignment">,
|
||||
DescFile<"DirectIvarAssignment.cpp">;
|
||||
|
||||
def ObjCSuperCallChecker : Checker<"MissingSuperCall">,
|
||||
HelpText<"Warn about Objective-C methods that lack a necessary call to super">,
|
||||
DescFile<"ObjCMissingSuperCallChecker.cpp">;
|
||||
|
||||
} // end "alpha.osx.cocoa"
|
||||
|
||||
let ParentPackage = CoreFoundation in {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// RUN: %clang_cc1 -fblocks -analyze -analyzer-checker=alpha.osx.cocoa.MissingSuperCall -verify -Wno-objc-root-class %s
|
||||
// RUN: %clang_cc1 -fblocks -analyze -analyzer-checker=osx.cocoa.MissingSuperCall -verify -Wno-objc-root-class %s
|
||||
|
||||
// Define used Classes
|
||||
@protocol NSObject
|
||||
|
||||
Reference in New Issue
Block a user