forked from OSchip/llvm-project
Rename -cc1 option '-warn-objc-unused-ivars' to '-analyzer-check-objc-unused-ivars'.
llvm-svn: 95345
This commit is contained in:
parent
4f627ba89f
commit
2d8ef71ae6
|
|
@ -48,7 +48,7 @@ def analysis_WarnObjCMethSigs : Flag<"-warn-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<"-warn-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<"-warn-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">;
|
||||||
def analysis_CheckerCFRef : Flag<"-checker-cfref">,
|
def analysis_CheckerCFRef : Flag<"-checker-cfref">,
|
||||||
HelpText<"Run the [Core] Foundation reference count checker">;
|
HelpText<"Run the [Core] Foundation reference count checker">;
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ ANALYSIS(WarnObjCDealloc, "warn-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)
|
||||||
|
|
||||||
ANALYSIS(WarnObjCUnusedIvars, "warn-objc-unused-ivars",
|
ANALYSIS(WarnObjCUnusedIvars, "analyzer-check-objc-unused-ivars",
|
||||||
"Warn about private ivars that are never used", ObjCImplementation)
|
"Warn about private ivars that are never used", ObjCImplementation)
|
||||||
|
|
||||||
ANALYSIS(CheckerCFRef, "checker-cfref",
|
ANALYSIS(CheckerCFRef, "checker-cfref",
|
||||||
|
|
|
||||||
|
|
@ -708,7 +708,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
||||||
CmdArgs.push_back("-warn-objc-methodsigs");
|
CmdArgs.push_back("-warn-objc-methodsigs");
|
||||||
// Do not enable the missing -dealloc check.
|
// Do not enable the missing -dealloc check.
|
||||||
// '-warn-objc-missing-dealloc',
|
// '-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
|
// Set the output format. The default is plist, for (lame) historical
|
||||||
|
|
|
||||||
|
|
@ -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. --------------------------===//
|
//===--- BEGIN: Delta-debugging reduced headers. --------------------------===//
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -126,7 +126,7 @@ my %AnalysesDefaultEnabled = (
|
||||||
'-warn-objc-methodsigs' => 1,
|
'-warn-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,
|
# '-warn-objc-missing-dealloc' => 1,
|
||||||
'-warn-objc-unused-ivars' => 1,
|
'-analyzer-check-objc-unused-ivars' => 1,
|
||||||
'-analyzer-check-security-syntactic' => 1
|
'-analyzer-check-security-syntactic' => 1
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue