зеркало из https://github.com/microsoft/clang-1.git
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:
Родитель
fa15be4cf9
Коммит
7909fc8833
|
@ -46,7 +46,7 @@ def analysis_WarnUninitVals : Flag<"-warn-uninit-values">,
|
|||
HelpText<"Warn about uses of uninitialized variables">;
|
||||
def analysis_WarnObjCMethSigs : Flag<"-analyzer-check-objc-methodsigs">,
|
||||
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">;
|
||||
def analysis_WarnObjCUnusedIvars : Flag<"-analyzer-check-objc-unused-ivars">,
|
||||
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",
|
||||
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",
|
||||
ObjCImplementation)
|
||||
|
||||
|
|
|
@ -707,7 +707,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
|
|||
CmdArgs.push_back("-analyzer-eagerly-assume");
|
||||
CmdArgs.push_back("-analyzer-check-objc-methodsigs");
|
||||
// Do not enable the missing -dealloc check.
|
||||
// '-warn-objc-missing-dealloc',
|
||||
// '-analyzer-check-objc-missing-dealloc',
|
||||
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;
|
||||
@protocol NSObject
|
||||
- (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
|
||||
// in dealloc.
|
||||
|
|
|
@ -125,7 +125,7 @@ my %AnalysesDefaultEnabled = (
|
|||
'-checker-cfref' => 1,
|
||||
'-analyzer-check-objc-methodsigs' => 1,
|
||||
# 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-security-syntactic' => 1
|
||||
);
|
||||
|
|
Загрузка…
Ссылка в новой задаче