Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -fsyntax-only -verify %s |
Steve Naroff | 4e78fd0 | 2008-12-10 20:07:25 +0000 | [diff] [blame] | 2 | |
| 3 | typedef signed char BOOL; |
| 4 | typedef unsigned int NSUInteger; |
| 5 | typedef 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; |
| 16 | typedef 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; |
Chris Lattner | 58fe03b | 2009-04-12 08:43:13 +0000 | [diff] [blame] | 28 | @protocol XDUMLClassInterfaceCommons <XDUMLClassifier> |
Steve Naroff | bc76dd0 | 2008-12-10 22:14:21 +0000 | [diff] [blame] | 29 | @end @protocol XDUMLImplementation; |
Steve Naroff | 4e78fd0 | 2008-12-10 20:07:25 +0000 | [diff] [blame] | 30 | @protocol XDUMLElement <NSObject> - (NSArray *) ownedElements; |
| 31 | @end @protocol XDUMLDataType; |
| 32 | @protocol XDUMLNamedElement <XDUMLElement> - (NSString *) name; |
| 33 | @end enum _XDSourceLanguage { |
| 34 | XDSourceUnknown=0, XDSourceJava, XDSourceC, XDSourceCPP, XDSourceObjectiveC }; |
| 35 | typedef NSUInteger XDSourceLanguage; |
| 36 | @protocol XDSCClassifier <XDUMLClassInterfaceCommons> - (XDSourceLanguage)language; |
| 37 | @end @class XDSCDocController; |
| 38 | @interface XDSCDisplaySpecification : NSObject <NSCoding>{ |
| 39 | } |
| 40 | @end @class XDSCOperation; |
| 41 | @interface XDSCClassFormatter : NSObject { |
| 42 | } |
Fariborz Jahanian | 2574a68 | 2009-05-14 23:52:54 +0000 | [diff] [blame] | 43 | + (NSUInteger) compartmentsForClassifier: (id <XDUMLClassifier>) classifier withSpecification: (XDSCDisplaySpecification *) displaySpec; |
Steve Naroff | 4e78fd0 | 2008-12-10 20:07:25 +0000 | [diff] [blame] | 44 | @end |
| 45 | @class NSString; |
| 46 | @implementation XDSCClassFormatter |
| 47 | |
| 48 | + appendVisibility: (id <XDUMLNamedElement>) element withSpecification: (XDSCDisplaySpecification *) displaySpec to: (NSMutableAttributedString *) attributedString |
| 49 | { |
Mike Stump | d1969d8 | 2009-07-22 00:43:08 +0000 | [diff] [blame] | 50 | return 0; |
Steve Naroff | 4e78fd0 | 2008-12-10 20:07:25 +0000 | [diff] [blame] | 51 | } |
Mike Stump | d1969d8 | 2009-07-22 00:43:08 +0000 | [diff] [blame] | 52 | + (NSUInteger) compartmentsForClassifier: (id <XDSCClassifier>) classifier withSpecification: (XDSCDisplaySpecification *) displaySpec { |
| 53 | return 0; |
Steve Naroff | 4e78fd0 | 2008-12-10 20:07:25 +0000 | [diff] [blame] | 54 | } |
Daniel Dunbar | d7d5f02 | 2009-03-24 02:24:46 +0000 | [diff] [blame] | 55 | @end |