From: Ted Kremenek Date: Fri, 5 Feb 2010 01:57:44 +0000 (+0000) Subject: Rename -cc1 option '-warn-objc-methodsigs' to '-analyzer-check-objc-methodsigs'. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa15be4cf95b7ed2d1df583497b16a6f897cf789;p=clang Rename -cc1 option '-warn-objc-methodsigs' to '-analyzer-check-objc-methodsigs'. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95346 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/CC1Options.td b/include/clang/Driver/CC1Options.td index 1d0390aaff..6106342258 100644 --- a/include/clang/Driver/CC1Options.td +++ b/include/clang/Driver/CC1Options.td @@ -44,7 +44,7 @@ def analysis_WarnDeadStores : Flag<"-analyzer-check-dead-stores">, HelpText<"Warn about stores to dead variables">; def analysis_WarnUninitVals : Flag<"-warn-uninit-values">, HelpText<"Warn about uses of uninitialized variables">; -def analysis_WarnObjCMethSigs : Flag<"-warn-objc-methodsigs">, +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">, HelpText<"Warn about Objective-C classes that lack a correct implementation of -dealloc">; diff --git a/include/clang/Frontend/Analyses.def b/include/clang/Frontend/Analyses.def index d57b2267a3..eb7ba92d6b 100644 --- a/include/clang/Frontend/Analyses.def +++ b/include/clang/Frontend/Analyses.def @@ -34,7 +34,7 @@ ANALYSIS(WarnDeadStores, "analyzer-check-dead-stores", ANALYSIS(WarnUninitVals, "warn-uninit-values", "Warn about uses of uninitialized variables", Code) -ANALYSIS(WarnObjCMethSigs, "warn-objc-methodsigs", +ANALYSIS(WarnObjCMethSigs, "analyzer-check-objc-methodsigs", "Warn about Objective-C method signatures with type incompatibilities", ObjCImplementation) diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index 3ee4552e73..ec1e9a9c8e 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -705,7 +705,7 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA, CmdArgs.push_back("-analyzer-check-security-syntactic"); CmdArgs.push_back("-checker-cfref"); CmdArgs.push_back("-analyzer-eagerly-assume"); - CmdArgs.push_back("-warn-objc-methodsigs"); + CmdArgs.push_back("-analyzer-check-objc-methodsigs"); // Do not enable the missing -dealloc check. // '-warn-objc-missing-dealloc', CmdArgs.push_back("-analyzer-check-objc-unused-ivars"); diff --git a/test/Analysis/ObjCRetSigs.m b/test/Analysis/ObjCRetSigs.m index cdc81993b8..a76d7b979e 100644 --- a/test/Analysis/ObjCRetSigs.m +++ b/test/Analysis/ObjCRetSigs.m @@ -1,4 +1,4 @@ -// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -warn-objc-methodsigs -verify %s +// RUN: %clang_cc1 -analyze -analyzer-experimental-internal-checks -analyzer-check-objc-methodsigs -verify %s int printf(const char *, ...); diff --git a/tools/scan-build/scan-build b/tools/scan-build/scan-build index 044feeae4d..1c856d9a50 100755 --- a/tools/scan-build/scan-build +++ b/tools/scan-build/scan-build @@ -123,7 +123,7 @@ close (PIPE); my %AnalysesDefaultEnabled = ( '-analyzer-check-dead-stores' => 1, '-checker-cfref' => 1, - '-warn-objc-methodsigs' => 1, + '-analyzer-check-objc-methodsigs' => 1, # Do not enable the missing -dealloc check by default. # '-warn-objc-missing-dealloc' => 1, '-analyzer-check-objc-unused-ivars' => 1,