[cfe-commits] r95346 - in /cfe/trunk: include/clang/Driver/CC1Options.td include/clang/Frontend/Analyses.def lib/Driver/Tools.cpp test/Analysis/ObjCRetSigs.m tools/scan-build/scan-build

Ted Kremenek kremenek at apple.com
Thu Feb 4 17:57:44 PST 2010


Author: kremenek
Date: Thu Feb  4 19:57:44 2010
New Revision: 95346

URL: http://llvm.org/viewvc/llvm-project?rev=95346&view=rev
Log:
Rename -cc1 option '-warn-objc-methodsigs' to '-analyzer-check-objc-methodsigs'.

Modified:
    cfe/trunk/include/clang/Driver/CC1Options.td
    cfe/trunk/include/clang/Frontend/Analyses.def
    cfe/trunk/lib/Driver/Tools.cpp
    cfe/trunk/test/Analysis/ObjCRetSigs.m
    cfe/trunk/tools/scan-build/scan-build

Modified: cfe/trunk/include/clang/Driver/CC1Options.td
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Driver/CC1Options.td?rev=95346&r1=95345&r2=95346&view=diff

==============================================================================
--- cfe/trunk/include/clang/Driver/CC1Options.td (original)
+++ cfe/trunk/include/clang/Driver/CC1Options.td Thu Feb  4 19:57:44 2010
@@ -44,7 +44,7 @@
   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">;

Modified: cfe/trunk/include/clang/Frontend/Analyses.def
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Frontend/Analyses.def?rev=95346&r1=95345&r2=95346&view=diff

==============================================================================
--- cfe/trunk/include/clang/Frontend/Analyses.def (original)
+++ cfe/trunk/include/clang/Frontend/Analyses.def Thu Feb  4 19:57:44 2010
@@ -34,7 +34,7 @@
 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)
 

Modified: cfe/trunk/lib/Driver/Tools.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/Tools.cpp?rev=95346&r1=95345&r2=95346&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/Tools.cpp (original)
+++ cfe/trunk/lib/Driver/Tools.cpp Thu Feb  4 19:57:44 2010
@@ -705,7 +705,7 @@
       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");

Modified: cfe/trunk/test/Analysis/ObjCRetSigs.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/ObjCRetSigs.m?rev=95346&r1=95345&r2=95346&view=diff

==============================================================================
--- cfe/trunk/test/Analysis/ObjCRetSigs.m (original)
+++ cfe/trunk/test/Analysis/ObjCRetSigs.m Thu Feb  4 19:57:44 2010
@@ -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 *, ...);
 

Modified: cfe/trunk/tools/scan-build/scan-build
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/tools/scan-build/scan-build?rev=95346&r1=95345&r2=95346&view=diff

==============================================================================
--- cfe/trunk/tools/scan-build/scan-build (original)
+++ cfe/trunk/tools/scan-build/scan-build Thu Feb  4 19:57:44 2010
@@ -123,7 +123,7 @@
 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,





More information about the cfe-commits mailing list