]> granicus.if.org Git - clang/commitdiff
Rename -cc1 option '-warn-objc-missing-dealloc' to '-analyzer-check-objc-missing...
authorTed Kremenek <kremenek@apple.com>
Fri, 5 Feb 2010 01:59:21 +0000 (01:59 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 5 Feb 2010 01:59:21 +0000 (01:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@95347 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Driver/CC1Options.td
include/clang/Frontend/Analyses.def
lib/Driver/Tools.cpp
test/Analysis/MissingDealloc.m
test/Analysis/PR2978.m
tools/scan-build/scan-build

index 610634225843e78657c8d99e079dfda74efdb39d..195ee92afaac13ecfe6340bf228a67746549f3bf 100644 (file)
@@ -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">;
index eb7ba92d6b7acdd6bfaaf74138c312d859ad6595..4052223ce827b54c26b0eb7c12c23cbf1cb330f4 100644 (file)
@@ -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)
  
index ec1e9a9c8edadb67b25cdfc92bc9266cc0abda5e..c0de62760d4016bdccc7a4f7b813f9e268859e73 100644 (file)
@@ -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");
     }
 
index daa6460da81b9fa0543341cce55a5f2bc5651572..bfd968a9a1a6f747f5f6b1d09464d1510c3062e3 100644 (file)
@@ -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;
index a70e34ac780051ff943eb89918be4000776d768e..1ed138e45d13b894e5400acfd1334f86c808abb8 100644 (file)
@@ -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.
index 1c856d9a5060d044fc3fb873c5ca4407e551c9af..60de858349abc664ec9bc705d55ab98768c2be61 100755 (executable)
@@ -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
 );