summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/input/oc/protocol.m
blob: 31a8b86f3023b5f38e094f77b2065fd1061fb379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30

NSAssert( [self.delegate conformsToProtocol: @protocol( UISearchBarDelegate )], @"Some Error." );

Protocol *counter = @protocol(ReferenceCounting);

@protocol ReferenceCounting

- setRefCount:(int)count;

- (int)refCount;

- incrementCount;

- decrementCount;

@end

@interface Formatter : NSObject < Formatting, Prettifying >

@end

if ( [receiver conformsTo:@protocol(ReferenceCounting)] )
   [receiver incrementCount];

@protocol B;

@protocol A
- Foo:(id <B>)anObject;
@end