Rename -cc1 option '-warn-objc-unused-ivars' to '-analyzer-check-objc-unused-ivars'.

llvm-svn: 95345
This commit is contained in:
Ted Kremenek 2010-02-05 01:55:01 +00:00
parent 4f627ba89f
commit 2d8ef71ae6
5 changed files with 5 additions and 5 deletions

View File

@ -48,7 +48,7 @@ def analysis_WarnObjCMethSigs : Flag<"-warn-objc-methodsigs">,
HelpText<"Warn about Objective-C method signatures with type incompatibilities">;
def analysis_WarnObjCDealloc : Flag<"-warn-objc-missing-dealloc">,
HelpText<"Warn about Objective-C classes that lack a correct implementation of -dealloc">;
def analysis_WarnObjCUnusedIvars : Flag<"-warn-objc-unused-ivars">,
def analysis_WarnObjCUnusedIvars : Flag<"-analyzer-check-objc-unused-ivars">,
HelpText<"Warn about private ivars that are never used">;
def analysis_CheckerCFRef : Flag<"-checker-cfref">,
HelpText<"Run the [Core] Foundation reference count checker">;

View File

@ -42,7 +42,7 @@ ANALYSIS(WarnObjCDealloc, "warn-objc-missing-dealloc",
"Warn about Objective-C classes that lack a correct implementation of -dealloc",
ObjCImplementation)
ANALYSIS(WarnObjCUnusedIvars, "warn-objc-unused-ivars",
ANALYSIS(WarnObjCUnusedIvars, "analyzer-check-objc-unused-ivars",
"Warn about private ivars that are never used", ObjCImplementation)
ANALYSIS(CheckerCFRef, "checker-cfref",

View File

@ -708,7 +708,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
CmdArgs.push_back("-warn-objc-methodsigs");
// Do not enable the missing -dealloc check.
// '-warn-objc-missing-dealloc',
CmdArgs.push_back("-warn-objc-unused-ivars");
CmdArgs.push_back("-analyzer-check-objc-unused-ivars");
}
// Set the output format. The default is plist, for (lame) historical

View File

@ -1,4 +1,4 @@
// RUN: %clang_cc1 -fblocks -analyze -warn-objc-unused-ivars %s -verify
// RUN: %clang_cc1 -fblocks -analyze -analyzer-check-objc-unused-ivars %s -verify
//===--- BEGIN: Delta-debugging reduced headers. --------------------------===//

View File

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