Home
last modified time | relevance | path

Searched refs:protocol (Results 1 – 25 of 603) sorted by relevance

12345678910>>...25

/llvm-project-15.0.7/clang/test/SemaObjC/
H A Dprotocol-expr-neg-1.m5 @protocol fproto; // expected-note {{'fproto' declared here}}
7 @protocol p1
14 Protocol *proto = @protocol(p1);
15 …Protocol *fproto = @protocol(fproto); // expected-error {{@protocol is using a forward protocol de…
16 Protocol *pp = @protocol(i); // expected-error {{cannot find protocol declaration for 'i'}}
17 Protocol *p1p = @protocol(cl); // expected-error {{cannot find protocol declaration for 'cl'}}
21 @protocol SuperProtocol; // expected-note {{'SuperProtocol' declared here}}
22 @protocol TestProtocol; // expected-note {{'TestProtocol' declared here}}
29 …return [foo conformsToProtocol:@protocol(TestProtocol)]; // expected-error {{@protocol is using a …
33 …return [foo conformsToProtocol:@protocol(SuperProtocol)]; // expected-error {{@protocol is using a…
H A Dprotocols.m14 @protocol p1,p2,p3;
16 @protocol p1;
18 @protocol PROTO1
27 @protocol PROTO2<p1>
30 @protocol p1 @end
41 @protocol p2 <p1>
49 @protocol XX;
56 @protocol B;
59 @protocol A < C >
61 @protocol B < A > // expected-error{{protocol has circular dependency}}
[all …]
H A Dclass-proto-1.m5 @protocol p1,p2,p3; // expected-note {{protocol 'p2' has no definition}} \
6 // expected-note {{protocol 'p3' has no definition}}
8 @protocol p1;
10 @protocol PROTO1
14 @protocol p1 @end
18 @interface E1 <p2> @end // expected-warning {{cannot find protocol definition for 'p2'}}
20 @protocol p2 @end
25 @interface E2 <p1,p2,p3> @end // expected-warning {{cannot find protocol definition for 'p3'}}
42 @protocol UndefinedParentProtocol; // expected-note {{protocol 'UndefinedParentProtocol' has no def…
44 @protocol UndefinedProtocol <UndefinedParentProtocol>
[all …]
H A Dprotocols-suppress-conformance.m6 @protocol Protocol
48 @protocol Inherited
53 @protocol Derived <Inherited>
68 @protocol AnotherProtocol @end
80 @protocol ProtocolA
86 @protocol ProtocolB <ProtocolA>
99 @protocol ProtocolC
155 // Categories adopting a protocol with explicit conformance need to implement that protocol.
171 @protocol NotDefined;
175 @protocol Ex2FooBar
[all …]
H A Dcategory-direct-members-protocol-conformance.m17 @protocol P
21 @interface I (Cat1) <P> // expected-error {{category 'Cat1' cannot conform to protocol 'P' because …
24 @protocol BaseP
31 @protocol P2
39 @protocol P3
57 @protocol PRecursive1
61 @protocol PRecursiveTop <PRecursive1>
68 @protocol PProp
81 @interface IProp1 () <PProp> // expected-error {{class extension cannot conform to protocol 'PProp'…
85 @protocol PProp2
[all …]
H A Dprotocol-implementation-inherited.m4 @protocol P0
11 // Interface conforms to inherited protocol
19 // Interface conforms to a protocol which extends another. The other
20 // protocol is inherited, and extended methods are implemented.
22 @protocol P1 <P0>
33 // Interface conforms to a protocol whose methods are provided by an
34 // alternate inherited protocol.
36 @protocol P2
46 // Interface conforms to a protocol whose methods are provided by a base class.
H A Dprops-on-prots.m6 @protocol NSObject
10 @protocol NSCoding
24 @protocol XCElementP < NSObject >
28 @protocol XCElementDisplayDelegateP;
29 @protocol XCElementTabMarkerP;
33 @protocol XCElementTabberP < XCElementP >
39 @protocol XCElementTabMarkerP < NSObject >
44 @protocol XCElementJustifierP < XCElementP >
H A Dmethod-conflict.m7 @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;
27 @protocol XDUMLClassifier;
28 @protocol XDUMLClassInterfaceCommons <XDUMLClassifier>
29 @end @protocol XDUMLImplementation;
30 @protocol XDUMLElement <NSObject> - (NSArray *) ownedElements;
31 @end @protocol XDUMLDataType;
32 @protocol XDUMLNamedElement <XDUMLElement> - (NSString *) name;
[all …]
H A Dinterface-tu-variable.m4 int x; // expected-error {{cannot declare variable inside @interface or @protocol}}
5 int one=1; // expected-error {{cannot declare variable inside @interface or @protocol}}
8 @protocol PPP
9 int ddd; // expected-error {{cannot declare variable inside @interface or @protocol}}
13 char * III; // expected-error {{cannot declare variable inside @interface or @protocol}}
18 char * III2; // expected-error {{cannot declare variable inside @interface or @protocol}}
H A Dtypedef-class.m8 @protocol NSObject - (BOOL) isEqual:(id) object; - (id)init; @end
9 @protocol NSCopying - (id) copyWithZone:(NSZone *) zone; @end
10 @protocol NSCoding - (void) encodeWithCoder:(NSCoder *) aCoder; @end
34 @protocol XCElementP < NSObject >
38 @protocol XCElementDisplayDelegateP;
39 @protocol XCElementDisplayDelegateP < NSObject >
43 @protocol XCElementSpacerP < XCElementP >
48 @protocol XCElementTogglerP < XCElementP > -(void) setDisplayed:(BOOL) displayed;
H A Dno-protocol-option-tests.m1 // RUN: %clang_cc1 -fsyntax-only -Wno-protocol -verify -Wno-objc-root-class %s
4 @protocol P
10 @implementation I @end // no warning with -Wno-protocol
15 @implementation C (Category) @end // no warning with -Wno-protocol
27 @implementation K @end // no warning with -Wno-protocol
32 @implementation L @end // no warning with -Wno-protocol
H A Dproperty-12.m3 @protocol P0
7 @protocol P1
11 @protocol P2
15 @protocol P3
19 @protocol P4
23 @protocol P5
27 @protocol P6
H A Dcompare-qualified-id.m7 @protocol NSObject - (BOOL)isEqual:(id)object; @end
8 @protocol NSCopying - (id)copyWithZone:(NSZone *)zone; @end // expected-note {{method 'copyWithZon…
9 @protocol NSMutableCopying - (id)mutableCopyWithZone:(NSZone *)zone; @end
10 @protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder; @end
13 @protocol NSFastEnumeration - (NSUInteger)countByEnumeratingWithState:(NSFastEnumerationState *)st…
22 @protocol XCPropertyValues <NSObject, NSCopying>
26 @implementation XCPropertyExpansionContext // expected-warning {{method 'copyWithZone:' in protocol
/llvm-project-15.0.7/clang/test/ARCMT/
H A Dobjcmt-protocol-conformance.m8 @protocol P
19 @protocol P1 @end
20 @protocol P2 @end
50 @protocol P3
54 @protocol P4
65 @protocol P5 <P3, P4>
69 @protocol P6 <P3, P4, P5>
84 @protocol EmptyProtocol
87 @protocol OptionalMethodsOnly
98 @protocol OptionalEvrything
[all …]
H A Dobjcmt-protocol-conformance.m.result8 @protocol P
19 @protocol P1 @end
20 @protocol P2 @end
50 @protocol P3
54 @protocol P4
65 @protocol P5 <P3, P4>
69 @protocol P6 <P3, P4, P5>
84 @protocol EmptyProtocol
87 @protocol OptionalMethodsOnly
98 @protocol OptionalEvrything
[all …]
/llvm-project-15.0.7/clang/test/Analysis/
H A Dregion-1.m10 @protocol NSObject - (BOOL)isEqual:(id)object;
13 @end @protocol NSCoding - (void)encodeWithCoder:(NSCoder *)aCoder;
21 @protocol EcoClassifier;
22 @protocol EcoClassInterfaceCommons <EcoClassifier> @end @protocol EcoImplementation;
27 @end @protocol EcoNamespace;
28 @protocol EcoType @end;
30 @end @protocol EcoComment;
31 @protocol EcoElement <NSObject> - (NSArray *) ownedElements;
32 @end @protocol EcoDirectedRelationship;
33 @protocol EcoNamedElement <EcoElement> - (NSString *) name;
[all …]
/llvm-project-15.0.7/clang/test/CodeGenObjC/
H A Dprotocols-lazy.m5 @protocol P0;
9 @protocol P1 -im1; @end
11 // Definition triggered by protocol reference.
14 @protocol P2 -im1; @end
15 void f0(void) { id x = @protocol(P2); }
20 @protocol P3;
29 @protocol P4 -im1; @end
36 @protocol P5;
41 @protocol P5 -im1; @end
51 @protocol P6 -im1; @end
[all …]
H A Dnon-runtime-protocol.m38 @protocol C
40 @protocol B <C>
42 @protocol A <B>
70 @protocol NonRuntimeProtocol
91 @protocol NonRuntimeProtocol
94 // PROTOEXPR: cannot use a protocol declared 'objc_non_runtime_protocol' in a @protocol expression
95 Protocol *p = @protocol(NonRuntimeProtocol);
126 @protocol R1
128 @protocol R2
130 @protocol R3 <R1>
[all …]
H A Dprotocols.m25 @protocol P0
28 @protocol P1
39 @protocol P2
43 @protocol P3<P1, P2>
49 void *p = @protocol(P3);
53 Protocol *P0 = @protocol(P0);
54 Protocol *P1 = @protocol(P1);
55 Protocol *P2 = @protocol(P2);
56 Protocol *P3 = @protocol(P3);
/llvm-project-15.0.7/clang/test/Modules/Inputs/
H A Dredecl-merge-right.h12 @protocol P1
16 @protocol P1;
18 @protocol P2;
20 @protocol P2;
22 @protocol P2;
51 @protocol P4, P3;
52 @protocol P3;
53 @protocol P3;
54 @protocol P3;
/llvm-project-15.0.7/clang/test/ASTMerge/interface/Inputs/
H A Dinterface2.m48 // Matching protocol
49 @protocol P0
55 @protocol P1
60 // Interface with protocol
66 // Protocol with protocol
67 @protocol P2 <P0>
77 @protocol P3, P4;
78 @protocol P5
H A Dinterface1.m49 // Matching protocol
50 @protocol P0
56 @protocol P1
61 // Interface with protocol
67 // Protocol with protocol
68 @protocol P2 <P0>
78 @protocol P3, P5;
79 @protocol P4
/llvm-project-15.0.7/clang/test/Rewriter/
H A Dprotocol-rewrite-1.m12 @protocol MyProto
39 if (@protocol(MyProto)) {
57 + (id)protocolCheckerWithTarget:(NSObject *)anObject protocol:(Protocol *)aProtocol;
60 @protocol NSConnectionVersionedProtocol
68 [NSProtocolChecker protocolCheckerWithTarget:0 protocol:@protocol(NSConnectionVersionedProtocol)];
73 // CHECK: sel_registerName("protocolCheckerWithTarget:protocol:"), (NSObject *)0, (Protocol *)_OBJC…
H A Drewrite-protocol-qualified.mm5 @protocol NSPortDelegate;
20 @protocol Proto1, Proto2;
22 @protocol Proto
35 @protocol NSObject @end
38 @protocol CoreDAVTaskManager <NSObject>
44 @protocol some_protocol;
/llvm-project-15.0.7/clang/test/Parser/
H A Dobjc-error-qualified-implementation.m4 @protocol P
9 @implementation I<P> @end // expected-error {{@implementation declaration cannot be protocol qualif…
15 @implementation J < P,P > // expected-error {{@implementation declaration cannot be protocol qualif…
20 @implementation K <P // expected-error {{@implementation declaration cannot be protocol qualified}}…
24 @implementation I (Cat) <P> // expected-error {{@implementation declaration cannot be protocol qua…
28 @implementation I (Cat1) <P // expected-error {{@implementation declaration cannot be protocol qual…

12345678910>>...25