[analyzer] Rename the checker as per Ted's comment. Remove the reference
from the driver. llvm-svn: 149276
This commit is contained in:
parent
41003f819c
commit
58cc6cabe5
|
@ -1352,7 +1352,6 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back("-analyzer-checker=deadcode");
|
||||
|
||||
// Enable the following experimental checkers for testing.
|
||||
CmdArgs.push_back("-analyzer-checker=experimental.osx.cocoa.ContainerAPI");
|
||||
CmdArgs.push_back("-analyzer-checker=security.insecureAPI.UncheckedReturn");
|
||||
CmdArgs.push_back("-analyzer-checker=security.insecureAPI.getpw");
|
||||
CmdArgs.push_back("-analyzer-checker=security.insecureAPI.gets");
|
||||
|
|
|
@ -39,6 +39,7 @@ def OSXExperimental : Package<"osx">, InPackage<Experimental>, Hidden;
|
|||
def Cocoa : Package<"cocoa">, InPackage<OSX>;
|
||||
def CocoaExperimental : Package<"cocoa">, InPackage<OSXExperimental>, Hidden;
|
||||
def CoreFoundation : Package<"coreFoundation">, InPackage<OSX>;
|
||||
def Containers : Package<"Containers">, InPackage<CoreFoundation>;
|
||||
|
||||
def LLVM : Package<"llvm">;
|
||||
def Debug : Package<"debug">;
|
||||
|
@ -364,10 +365,6 @@ 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 {
|
||||
|
@ -401,6 +398,11 @@ def CFErrorChecker : Checker<"CFError">,
|
|||
DescFile<"NSErrorChecker.cpp">;
|
||||
}
|
||||
|
||||
let ParentPackage = Containers in {
|
||||
def ObjCContainersASTChecker : Checker<"PointerSizedValues">,
|
||||
HelpText<"Warns if 'CFArray', 'CFDictionary', 'CFSet' are created with non-pointer-size values">,
|
||||
DescFile<"ObjCContainersASTChecker.cpp">;
|
||||
}
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Checkers for LLVM development.
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: %clang_cc1 -analyze -analyzer-checker=osx.cocoa.CFContainersSyntax,experimental.osx.cocoa.Containers -analyzer-store=region -triple x86_64-apple-darwin -verify %s
|
||||
// RUN: %clang_cc1 -analyze -analyzer-checker=osx.coreFoundation.Containers.PointerSizedValues,experimental.osx.cocoa.Containers -analyzer-store=region -triple x86_64-apple-darwin -verify %s
|
||||
|
||||
typedef const struct __CFAllocator * CFAllocatorRef;
|
||||
typedef const struct __CFString * CFStringRef;
|
||||
|
|
Loading…
Reference in New Issue