[cfe-commits] r60722 - in /cfe/trunk/test/Analysis: MissingDealloc.m MissingDealloc_IBOutlet.m

Ted Kremenek kremenek at apple.com
Mon Dec 8 14:05:43 PST 2008


Author: kremenek
Date: Mon Dec  8 16:05:43 2008
New Revision: 60722

URL: http://llvm.org/viewvc/llvm-project?rev=60722&view=rev
Log:
Incorporate MissingDealloc_IBOutlet.m test case into MissingDealloc.m

Removed:
    cfe/trunk/test/Analysis/MissingDealloc_IBOutlet.m
Modified:
    cfe/trunk/test/Analysis/MissingDealloc.m

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

==============================================================================
--- cfe/trunk/test/Analysis/MissingDealloc.m (original)
+++ cfe/trunk/test/Analysis/MissingDealloc.m Mon Dec  8 16:05:43 2008
@@ -45,3 +45,21 @@
   return self;
 }
 @end
+
+//===------------------------------------------------------------------------===
+//  Don't warn about iVars that are IBOutlets.
+
+#ifndef IBOutlet
+#define IBOutlet
+#endif
+
+ at class NSWindow;
+
+ at interface HasOutlet : NSObject {
+IBOutlet NSWindow *window;
+}
+ at end
+
+ at implementation HasOutlet // no-warning
+ at end
+

Removed: cfe/trunk/test/Analysis/MissingDealloc_IBOutlet.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/MissingDealloc_IBOutlet.m?rev=60721&view=auto

==============================================================================
--- cfe/trunk/test/Analysis/MissingDealloc_IBOutlet.m (original)
+++ cfe/trunk/test/Analysis/MissingDealloc_IBOutlet.m (removed)
@@ -1,20 +0,0 @@
-// RUN: clang -warn-objc-missing-dealloc '-DIBOutlet=__attribute__((iboutlet))' %s --verify
-
-#ifndef IBOutlet
-#define IBOutlet
-#endif
-
- at class NSWindow;
-
- at interface NSObject {}
-- (void)dealloc;
- at end
-
- at interface A : NSObject {
-IBOutlet NSWindow *window;
-}
- at end
-
- at implementation A // no-warning
- at end
-





More information about the cfe-commits mailing list