Rename -cc1 option '-warn-objc-missing-dealloc' to '-analyzer-check-objc-missing-dealloc'.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95347 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2010-02-05 01:59:21 +00:00
Родитель fa15be4cf9
Коммит 7909fc8833
6 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -46,7 +46,7 @@ def analysis_WarnUninitVals : Flag<"-warn-uninit-values">,
HelpText<"Warn about uses of uninitialized variables">; HelpText<"Warn about uses of uninitialized variables">;
def analysis_WarnObjCMethSigs : Flag<"-analyzer-check-objc-methodsigs">, def analysis_WarnObjCMethSigs : Flag<"-analyzer-check-objc-methodsigs">,
HelpText<"Warn about Objective-C method signatures with type incompatibilities">; HelpText<"Warn about Objective-C method signatures with type incompatibilities">;
def analysis_WarnObjCDealloc : Flag<"-warn-objc-missing-dealloc">, def analysis_WarnObjCDealloc : Flag<"-analyzer-check-objc-missing-dealloc">,
HelpText<"Warn about Objective-C classes that lack a correct implementation of -dealloc">; HelpText<"Warn about Objective-C classes that lack a correct implementation of -dealloc">;
def analysis_WarnObjCUnusedIvars : Flag<"-analyzer-check-objc-unused-ivars">, def analysis_WarnObjCUnusedIvars : Flag<"-analyzer-check-objc-unused-ivars">,
HelpText<"Warn about private ivars that are never used">; HelpText<"Warn about private ivars that are never used">;

Просмотреть файл

@ -38,7 +38,7 @@ ANALYSIS(WarnObjCMethSigs, "analyzer-check-objc-methodsigs",
"Warn about Objective-C method signatures with type incompatibilities", "Warn about Objective-C method signatures with type incompatibilities",
ObjCImplementation) ObjCImplementation)
ANALYSIS(WarnObjCDealloc, "warn-objc-missing-dealloc", ANALYSIS(WarnObjCDealloc, "analyzer-check-objc-missing-dealloc",
"Warn about Objective-C classes that lack a correct implementation of -dealloc", "Warn about Objective-C classes that lack a correct implementation of -dealloc",
ObjCImplementation) ObjCImplementation)

Просмотреть файл

@ -707,7 +707,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
CmdArgs.push_back("-analyzer-eagerly-assume"); CmdArgs.push_back("-analyzer-eagerly-assume");
CmdArgs.push_back("-analyzer-check-objc-methodsigs"); CmdArgs.push_back("-analyzer-check-objc-methodsigs");
// Do not enable the missing -dealloc check. // Do not enable the missing -dealloc check.
// '-warn-objc-missing-dealloc', // '-analyzer-check-objc-missing-dealloc',
CmdArgs.push_back("-analyzer-check-objc-unused-ivars"); CmdArgs.push_back("-analyzer-check-objc-unused-ivars");
} }

Просмотреть файл

@ -1,4 +1,4 @@
// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -warn-objc-missing-dealloc '-DIBOutlet=__attribute__((iboutlet))' %s -verify // RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-missing-dealloc '-DIBOutlet=__attribute__((iboutlet))' %s -verify
typedef signed char BOOL; typedef signed char BOOL;
@protocol NSObject @protocol NSObject
- (BOOL)isEqual:(id)object; - (BOOL)isEqual:(id)object;

Просмотреть файл

@ -1,4 +1,4 @@
// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -warn-objc-missing-dealloc %s -verify // RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-missing-dealloc %s -verify
// Tests for the checker which checks missing/extra ivar 'release' calls // Tests for the checker which checks missing/extra ivar 'release' calls
// in dealloc. // in dealloc.

Просмотреть файл

@ -125,7 +125,7 @@ my %AnalysesDefaultEnabled = (
'-checker-cfref' => 1, '-checker-cfref' => 1,
'-analyzer-check-objc-methodsigs' => 1, '-analyzer-check-objc-methodsigs' => 1,
# Do not enable the missing -dealloc check by default. # Do not enable the missing -dealloc check by default.
# '-warn-objc-missing-dealloc' => 1, # '-analyzer-check-objc-missing-dealloc' => 1,
'-analyzer-check-objc-unused-ivars' => 1, '-analyzer-check-objc-unused-ivars' => 1,
'-analyzer-check-security-syntactic' => 1 '-analyzer-check-security-syntactic' => 1
); );