[cfe-commits] r126675 - in /cfe/trunk/test: Analysis/method-arg-decay.m SemaObjC/method-arg-decay.m
Argyrios Kyrtzidis
akyrtzi at gmail.com
Mon Feb 28 11:49:21 PST 2011
Author: akirtzidis
Date: Mon Feb 28 13:49:21 2011
New Revision: 126675
URL: http://llvm.org/viewvc/llvm-project?rev=126675&view=rev
Log:
Move test/SemaObjC/method-arg-decay.m -> test/Analysis/method-arg-decay.m
Added:
cfe/trunk/test/Analysis/method-arg-decay.m
- copied, changed from r126674, cfe/trunk/test/SemaObjC/method-arg-decay.m
Removed:
cfe/trunk/test/SemaObjC/method-arg-decay.m
Copied: cfe/trunk/test/Analysis/method-arg-decay.m (from r126674, cfe/trunk/test/SemaObjC/method-arg-decay.m)
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Analysis/method-arg-decay.m?p2=cfe/trunk/test/Analysis/method-arg-decay.m&p1=cfe/trunk/test/SemaObjC/method-arg-decay.m&r1=126674&r2=126675&rev=126675&view=diff
==============================================================================
(empty)
Removed: cfe/trunk/test/SemaObjC/method-arg-decay.m
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/SemaObjC/method-arg-decay.m?rev=126674&view=auto
==============================================================================
--- cfe/trunk/test/SemaObjC/method-arg-decay.m (original)
+++ cfe/trunk/test/SemaObjC/method-arg-decay.m (removed)
@@ -1,98 +0,0 @@
-// RUN: %clang_cc1 -analyzer-check-objc-mem -verify %s
-typedef signed char BOOL;
-typedef int NSInteger;
-typedef unsigned int NSUInteger;
-typedef struct _NSZone NSZone;
- at class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
- at protocol NSObject - (BOOL)isEqual:(id)object;
- at end @protocol NSCopying - (id)copyWithZone:(NSZone *)zone;
- at end @protocol NSMutableCopying - (id)mutableCopyWithZone:(NSZone *)zone;
- at end @protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder;
- at end @interface NSObject <NSObject> {
-}
- at end extern id NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone *zone);
- at interface NSValue : NSObject <NSCopying, NSCoding> - (void)getValue:(void *)value;
- at end @class NSString, NSData, NSMutableData, NSMutableDictionary, NSMutableArray;
-typedef struct {
-}
- NSFastEnumerationState;
- at protocol NSFastEnumeration - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)state objects:(id *)stackbuf count:(NSUInteger)len;
- at end @class NSString;
-typedef struct _NSRange {
-}
- NSRange;
- at interface NSValue (NSValueRangeExtensions) + (NSValue *)valueWithRange:(NSRange)range;
-- (id)objectAtIndex:(NSUInteger)index;
- at end typedef unsigned short unichar;
- at interface NSString : NSObject <NSCopying, NSMutableCopying, NSCoding> - (NSUInteger)length;
- at end @class NSArray, NSDictionary, NSString, NSError;
- at interface NSSet : NSObject <NSCopying, NSMutableCopying, NSCoding, NSFastEnumeration> - (NSUInteger)count;
- at end extern NSString *NSAccessibilityRoleDescription(NSString *role, NSString *subrole) ;
- at interface NSResponder : NSObject <NSCoding> {
-}
- at end @protocol NSAnimatablePropertyContainer - (id)animator;
- at end extern NSString *NSAnimationTriggerOrderIn ;
- at interface NSView : NSResponder <NSAnimatablePropertyContainer> {
-}
- at end @class NSAttributedString, NSEvent, NSFont, NSFormatter, NSImage, NSMenu, NSText, NSView;
- at interface NSWindowController : NSResponder <NSCoding> {
-}
- at end @class NSArray, NSFont, NSTabViewItem;
- at interface NSTabView : NSView {
-}
-- (NSArray *)tabViewItems;
-- (NSString *)label;
- at end typedef enum {
-PBXNoItemChanged = 0x00, PBXProjectItemChanged = 0x01, PBXReferenceChanged = 0x02, PBXGroupChanged = 0x04, PBXTargetChanged = 0x08, PBXBuildPhaseChanged = 0x10, PBXBuildFileChanged = 0x20, PBXBreakpointChanged = 0x40, }
- PBXArchiveMask;
- at interface PBXModule : NSWindowController {
-}
- at end typedef enum {
-PBXFindMatchContains, PBXFindMatchStartsWith, PBXFindMatchWholeWords, PBXFindMatchEndsWith }
- PBXFindMatchStyle;
- at protocol PBXSelectableText - (NSString *)selectedString;
- at end @protocol PBXFindableText <PBXSelectableText> - (BOOL)findText:(NSString *)string ignoreCase:(BOOL)ignoreCase matchStyle:(PBXFindMatchStyle)matchStyle backwards:(BOOL)backwards wrap:(BOOL)wrap;
- at end @class PBXProjectDocument, PBXProject, PBXAttributedStatusView;
- at interface PBXProjectModule : PBXModule <PBXFindableText> {
-}
- at end @class PBXBookmark;
- at protocol PBXSelectionTarget - (NSObject <PBXSelectionTarget> *) performAction:(id)action withSelection:(NSArray *)selection; // expected-note {{method declared here}}
- at end @class XCPropertyDictionary, XCPropertyCondition, XCPropertyConditionSet, XCMutablePropertyConditionSet;
-extern NSMutableArray *XCFindPossibleKeyModules(PBXModule *module, BOOL useExposedModulesOnly);
- at interface NSString (StringUtilities) - (NSString *) trimToLength:(NSInteger)length preserveRange:(NSRange)range;
-- (id) objectOfType:(Class)type matchingFunction:(BOOL (void *, void *))comparator usingData:(void *)data;
- at end @class XCControlView;
- at protocol XCDockViewHeader - (NSImage *) headerImage;
- at end @class XCDockableTabModule;
- at interface XCExtendedTabView : NSTabView <XCDockViewHeader> {
-}
- at end @class PBXProjectDocument, PBXFileReference, PBXModule, XCWindowTool;
- at interface XCPerspectiveModule : PBXProjectModule <PBXSelectionTarget> { // expected-note {{required for direct or indirect protocol 'PBXSelectionTarget'}}
- XCExtendedTabView *_perspectivesTabView;
-}
-- (PBXModule *) moduleForTab:(NSTabViewItem *)item; // expected-note {{method definition for 'moduleForTab:' not found}}
- at end
- at implementation XCPerspectiveModule // expected-warning {{incomplete implementation}} \
- // expected-warning {{method in protocol not implemented [-Wprotocol]}}
-+ (void) openForProjectDocument:(PBXProjectDocument *)projectDocument {
-}
-- (PBXModule *) type:(Class)type inPerspective:(id)perspectiveIdentifer matchingFunction:(BOOL (void *, void *))comparator usingData:(void *)data {
- NSArray *allItems = [_perspectivesTabView tabViewItems];
- NSInteger i, c = [allItems count];
- for (i = 0;
- i < c;
- i++) {
- NSTabViewItem *item = [allItems objectAtIndex:i];
- if ([[item label] isEqual:perspectiveIdentifer]) {
- PBXProjectModule *pModule = (PBXProjectModule *)[self moduleForTab:item];
- PBXModule *obj = [XCFindPossibleKeyModules(pModule, (BOOL)0) objectOfType:type matchingFunction:comparator usingData:data];
- }
- }
- return 0;
-}
-- (BOOL)buffer:(char *)buf containsAnyPrompts:(char *[])prompts
-{
- prompts++;
- return (BOOL)0;
-}
- at end
More information about the cfe-commits
mailing list