blob: c46f4899123e3c70e4649c9b21790afb47adc6af [file] [log] [blame]
Steve Naroff4e78fd02008-12-10 20:07:25 +00001// RUN: clang -fsyntax-only -verify %s
2
3typedef signed char BOOL;
4typedef unsigned int NSUInteger;
5typedef struct _NSZone NSZone;
6@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
7@protocol NSObject - (BOOL)isEqual:(id)object;
8@end @protocol NSCopying - (id)copyWithZone:(NSZone *)zone;
9@end @protocol NSMutableCopying - (id)mutableCopyWithZone:(NSZone *)zone;
10@end @protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder;
11@end @interface NSObject <NSObject> {
12}
13@end extern id NSAllocateObject(Class aClass, NSUInteger extraBytes, NSZone *zone);
14@interface NSValue : NSObject <NSCopying, NSCoding> - (void)getValue:(void *)value;
15@end @class NSString;
16typedef struct _NSRange {
17}
18 NSRange;
19@interface NSValue (NSValueRangeExtensions) + (NSValue *)valueWithRange:(NSRange)range;
20@end @interface NSAttributedString : NSObject <NSCopying, NSMutableCopying, NSCoding> - (NSString *)string;
21@end @interface NSMutableAttributedString : NSAttributedString - (void)replaceCharactersInRange:(NSRange)range withString:(NSString *)str;
22@end @class NSArray, NSDictionary, NSString, NSError;
23@interface NSScanner : NSObject <NSCopying> - (NSString *)string;
24@end typedef struct {
25}
26 CSSM_FIELDGROUP, *CSSM_FIELDGROUP_PTR;
27@protocol XDUMLClassifier;
28@protocol XDUMLClassInterfaceCommons <XDUMLClassifier> @end @protocol XDUMLImplementation;
29@protocol XDUMLElement <NSObject> - (NSArray *) ownedElements;
30@end @protocol XDUMLDataType;
31@protocol XDUMLNamedElement <XDUMLElement> - (NSString *) name;
32@end enum _XDSourceLanguage {
33XDSourceUnknown=0, XDSourceJava, XDSourceC, XDSourceCPP, XDSourceObjectiveC };
34typedef NSUInteger XDSourceLanguage;
35@protocol XDSCClassifier <XDUMLClassInterfaceCommons> - (XDSourceLanguage)language;
36@end @class XDSCDocController;
37@interface XDSCDisplaySpecification : NSObject <NSCoding>{
38}
39@end @class XDSCOperation;
40@interface XDSCClassFormatter : NSObject {
41}
42+ (NSUInteger) compartmentsForClassifier: (id <XDUMLClassifier>) classifier withSpecification: (XDSCDisplaySpecification *) displaySpec;
43@end
44@class NSString;
45@implementation XDSCClassFormatter
46
47+ appendVisibility: (id <XDUMLNamedElement>) element withSpecification: (XDSCDisplaySpecification *) displaySpec to: (NSMutableAttributedString *) attributedString
48{
49}
50// FIXME: should we warn? (since the protocols are different). FWIW...GCC doesn't currently.
51+ (NSUInteger) compartmentsForClassifier: (id <XDSCClassifier>) classifier withSpecification: (XDSCDisplaySpecification *) displaySpec {
52}
53@end