| /llvm-project-15.0.7/clang/test/SemaObjC/ |
| H A D | special-dep-unavail-warning.m | 33 …[c depInA]; // expected-warning {{'depInA' may be deprecated because the receiver type is unknown}} 34 …[c unavailMeth]; // expected-warning {{'unavailMeth' may be unavailable because the receiver type … 35 …[c depInA1]; // expected-warning {{'depInA1' may be deprecated because the receiver type is unknow… 36 …[c unavailMeth1]; // expected-warning {{'unavailMeth1' may be unavailable because the receiver typ… 37 …[c depInA2]; // expected-warning {{'depInA2' may be deprecated because the receiver type is unknow… 38 …[c unavailMeth2]; // expected-warning {{'unavailMeth2' may be unavailable because the receiver typ… 39 …[c depunavailInA]; // expected-warning {{'depunavailInA' may be unavailable because the receiver t… 40 …[c depunavailInA1];// expected-warning {{'depunavailInA1' may be unavailable because the receiver … 41 …[c FuzzyMeth]; // expected-warning {{'FuzzyMeth' may be deprecated because the receiver type … 42 …[c FuzzyMeth1]; // expected-warning {{'FuzzyMeth1' may be deprecated because the receiver type is …
|
| H A D | inst-method-lookup-in-root.m | 19 Class receiver; 23 [receiver starboard]; // expected-warning {{instance method 'starboard' is being used on 'Class'}} 24 [receiver inst_in_root]; // Ok! 25 [receiver inst_in_proto]; // Ok!
|
| H A D | message.m | 88 int a = [X somemsg]; // expected-warning {{receiver type 'int' is not 'id'}} \ 91 int b = [S somemsg]; // expected-error {{bad receiver type 'struct S'}} 98 …[X rect]; // expected-warning {{receiver type 'struct objc_object *' is not 'id' or interface poin… 110 @interface I1 // expected-note {{receiver is instance of class declared here}}
|
| H A D | bad-receiver-1.m | 10 [objc_lookUpClass("NSString") retain]; // expected-warning {{receiver type 'int' is not 'id'}} 18 …[obj self]; // expected-warning {{receiver type 'CFStringRef' (aka 'const struct __CFString *') is…
|
| H A D | receiver-forward-class.m | 15 …return [x width]; // expected-warning {{receiver type 'A' for instance message is a forward declar… 17 … // expected-note {{receiver is treated with 'id' type for purpose of method lookup}}
|
| H A D | arc.m | 209 …mplete*) init50; // expected-error {{init methods must return a type related to the receiver type}} 210 …mplete*) init51; // expected-error {{init methods must return a type related to the receiver type}} 211 …mplete*) init52; // expected-error {{init methods must return a type related to the receiver type}} 212 …mplete*) init53; // expected-error {{init methods must return a type related to the receiver type}} 213 …mplete*) init54; // expected-error {{init methods must return a type related to the receiver type}} 214 …mplete*) init55; // expected-error {{init methods must return a type related to the receiver type}} 260 …15 { return 0; } // expected-error {{init methods must return a type related to the receiver type}} 271 …omplete*) init1; // expected-error {{init methods must return a type related to the receiver type}} 422 …[v0 test17]; // expected-error {{receiver type 'Test17' for instance message is a forward declarat… 425 …[v1 test17]; // expected-error {{receiver type 'Test17<Test17p>' for instance message is a forward… [all …]
|
| H A D | invalid-receiver.m | 8 …[NotAClass nonexistent_method]; // expected-error {{receiver type 'NotAClass' (aka 'struct NotACla…
|
| /llvm-project-15.0.7/clang/test/Analysis/ |
| H A D | nil-receiver-undefined-larger-than-voidptr-ret.m | 86 // CHECK-darwin8: warning: The receiver of message 'longDoubleM' is nil and returns a value of type… 87 // CHECK-darwin8: warning: The receiver of message 'longlongM' is nil and returns a value of type '… 88 // CHECK-darwin8: warning: The receiver of message 'doubleM' is nil and returns a value of type 'do… 89 // CHECK-darwin8: warning: The receiver of message 'unsignedLongLongM' is nil and returns a value o… 90 // CHECK-darwin8: warning: The receiver of message 'longlongM' is nil and returns a value of type '… 92 // CHECK-darwin9-NOT: warning: The receiver of message 'longlongM' is nil and returns a value of ty… 93 // CHECK-darwin9-NOT: warning: The receiver of message 'unsignedLongLongM' is nil and returns a val… 94 // CHECK-darwin9-NOT: warning: The receiver of message 'doubleM' is nil and returns a value of type… 95 // CHECK-darwin9-NOT: warning: The receiver of message 'longlongM' is nil and returns a value of ty… 96 // CHECK-darwin9-NOT: warning: The receiver of message 'longDoubleM' is nil and returns a value of …
|
| H A D | objc-message.m | 26 // call when the receiver may be nil in order to avoid inconsistencies of 35 // Both the receiver and the result should be nil after a message 36 // sent to a nil receiver returning a value of type id.
|
| H A D | rdar-6540084.m | 12 @class NSArray; // expected-note {{receiver is instance of class declared here}} 18 …: NSObject {} typedef NSUInteger BugsBunnyType; @end // expected-note {{receiver is instance of cl… 25 …icate predicateWithFormat:@"isSearchable == YES"]; // expected-warning{{receiver 'NSPredicate' is …
|
| /llvm-project-15.0.7/clang/test/ARCMT/ |
| H A D | checking.m | 231 …mplete*) init50; // expected-error {{init methods must return a type related to the receiver type}} 232 …mplete*) init51; // expected-error {{init methods must return a type related to the receiver type}} 233 …mplete*) init52; // expected-error {{init methods must return a type related to the receiver type}} 234 …mplete*) init53; // expected-error {{init methods must return a type related to the receiver type}} 235 …mplete*) init54; // expected-error {{init methods must return a type related to the receiver type}} 236 …mplete*) init55; // expected-error {{init methods must return a type related to the receiver type}} 274 …05 { return 0; } // expected-error {{init methods must return a type related to the receiver type}} 275 …15 { return 0; } // expected-error {{init methods must return a type related to the receiver type}} 276 …25 { return 0; } // expected-error {{init methods must return a type related to the receiver type}} 277 …35 { return 0; } // expected-error {{init methods must return a type related to the receiver type}} [all …]
|
| /llvm-project-15.0.7/clang/test/FixIt/ |
| H A D | fixit-class-method-messaging.m | 7 @interface I : NSObject // expected-note 3 {{receiver is instance of class declared here}} 19 // expected-note {{receiver expression is here}} 22 // expected-note {{receiver expression is here}} 25 // expected-note {{receiver expression is here}}
|
| H A D | typo.m | 64 [NSstring method:17]; // expected-error{{unknown receiver 'NSstring'; did you mean 'NSString'?}} 111 return [supper method]; // expected-error{{unknown receiver 'supper'; did you mean 'super'?}} 122 return [supper method2]; // expected-error{{unknown receiver 'supper'; did you mean 'super'?}}
|
| /llvm-project-15.0.7/clang/test/Analysis/inlining/ |
| H A D | inline-defensive-checks.m | 47 // Test nil receiver suppression. 48 // We only suppress on nil receiver if the nil value is directly causing the bug. 99 // The warning is not suppressed because the receiver being nil is not 111 // The warning is not suppressed because the receiver being nil is not 123 // The warning is not suppressed because the receiver being nil is not
|
| /llvm-project-15.0.7/clang/test/CodeGenObjC/ |
| H A D | builtins.m | 5 void test0(id receiver, SEL sel, const char *str) { 6 short s = ((short (*)(id, SEL, const char*)) objc_msgSend)(receiver, sel, str);
|
| H A D | null-check-bool-ret.m | 34 // CHECK-LABEL: msgSend.null-receiver: 38 // CHECK-NEXT: {{%[^ ]+}} = phi i1 [ [[CALL]], %msgSend.call ], [ false, %msgSend.null-receiver ]
|
| /llvm-project-15.0.7/clang/test/Parser/ |
| H A D | objcxx0x-lambda-expressions.mm | 32 …[foo = bar baz]; // expected-warning {{receiver type 'int'}} expected-warning {{instance method '-… 37 …[foo = bar ++ baz]; // expected-warning {{receiver type 'int'}} expected-warning {{instance method… 40 …[foo = { bar } baz ]; // expected-warning {{receiver type 'int'}} expected-warning {{instance meth…
|
| /llvm-project-15.0.7/clang/lib/Edit/ |
| H A D | EditedSource.cpp | 382 static void applyRewrite(EditsReceiver &receiver, in applyRewrite() argument 399 receiver.remove(range); in applyRewrite() 404 receiver.replace(range, text); in applyRewrite() 406 receiver.insert(Loc, text); in applyRewrite() 409 void EditedSource::applyRewrites(EditsReceiver &receiver, in applyRewrites() argument 437 applyRewrite(receiver, StrVec, CurOffs, CurLen, SourceMgr, LangOpts, in applyRewrites() 445 applyRewrite(receiver, StrVec, CurOffs, CurLen, SourceMgr, LangOpts, in applyRewrites()
|
| /llvm-project-15.0.7/compiler-rt/test/asan/TestCases/Posix/ |
| H A D | halt_on_error-signals.c | 61 void *receiver(void *arg) { in receiver() function 90 CHECK_CALL(pthread_create(&receiver_tid, 0, receiver, 0), "start thread"); in main()
|
| /llvm-project-15.0.7/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | LocalizationChecker.cpp | 136 #define NEW_RECEIVER(receiver) \ argument 137 llvm::DenseMap<Selector, uint8_t> &receiver##M = \ 138 UIMethods.insert({&Ctx.Idents.get(#receiver), \ 141 #define ADD_NULLARY_METHOD(receiver, method, argument) \ argument 142 receiver##M.insert( \ 144 #define ADD_UNARY_METHOD(receiver, method, argument) \ argument 145 receiver##M.insert( \ 147 #define ADD_METHOD(receiver, method_list, count, argument) \ argument 148 receiver##M.insert({Ctx.Selectors.getSelector(count, method_list), argument}); 610 #define LSM_INSERT_NULLARY(receiver, method_name) \ argument [all …]
|
| /llvm-project-15.0.7/clang/lib/ARCMigrate/ |
| H A D | TransZeroOutPropsInDealloc.cpp | 48 Expr *receiver = ME->getInstanceReceiver(); in VisitObjCMessageExpr() local 49 if (!receiver) in VisitObjCMessageExpr() 52 DeclRefExpr *refE = dyn_cast<DeclRefExpr>(receiver->IgnoreParenCasts()); in VisitObjCMessageExpr()
|
| H A D | TransformActions.cpp | 147 void applyRewrites(TransformActions::RewriteReceiver &receiver); 558 TransformActions::RewriteReceiver &receiver) { in applyRewrites() argument 563 receiver.insert(loc, *TI); in applyRewrites() 571 receiver.increaseIndentation(range, I->second); in applyRewrites() 577 receiver.remove(range); in applyRewrites() 676 void TransformActions::applyRewrites(RewriteReceiver &receiver) { in applyRewrites() argument 677 static_cast<TransformActionsImpl*>(Impl)->applyRewrites(receiver); in applyRewrites()
|
| /llvm-project-15.0.7/clang/test/SemaObjCXX/ |
| H A D | instantiate-message.mm | 37 T *receiver = 0; 39 R *result1 = [receiver method1:arg1];
|
| /llvm-project-15.0.7/clang/test/Analysis/Inputs/ |
| H A D | qt-simulator.h | 29 static void postEvent(QObject *receiver, QEvent *event);
|
| /llvm-project-15.0.7/clang/test/PCH/ |
| H A D | typo.m | 5 [NSstring alloc]; // expected-error{{unknown receiver 'NSstring'; did you mean 'NSString'?}}
|