summaryrefslogtreecommitdiffstats
path: root/debian/uncrustify-trinity/uncrustify-trinity-0.75.0/tests/expected/oc/50008-protocol.m
blob: 50c4314a9a2ec881ab54e0ce682fe5337f406596 (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
31

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