Lines Matching defs:SuperLoc
1992 SourceLocation SuperLoc, QualType SuperType, bool Super) {
2005 SourceRange BaseRange = Super? SourceRange(SuperLoc)
2020 OK_ObjCProperty, MemberLoc, SuperLoc, SuperType);
2037 SuperLoc, SuperType);
2106 OK_ObjCProperty, MemberLoc, SuperLoc, SuperType);
2141 SuperLoc, SuperType, Super);
2392 ExprResult SemaObjC::ActOnSuperMessage(Scope *S, SourceLocation SuperLoc,
2399 ObjCMethodDecl *Method = tryCaptureObjCSelf(SuperLoc);
2401 Diag(SuperLoc, diag::err_invalid_receiver_to_message_super);
2407 Diag(SuperLoc, diag::err_no_super_class_message)
2415 Diag(SuperLoc, diag::err_root_class_cannot_use_super)
2429 return BuildInstanceMessage(nullptr, SuperTy, SuperLoc,
2438 SuperLoc, Sel, /*Method=*/nullptr,
2456 /*SuperLoc=*/isSuperReceiver ? Loc : SourceLocation(),
2597 /// sending to the superclass and \p SuperLoc must be a valid source
2605 /// \param SuperLoc The location of the "super" keyword in a
2620 SourceLocation SuperLoc, Selector Sel, ObjCMethodDecl *Method,
2624 SourceLocation Loc = SuperLoc.isValid()? SuperLoc
2643 assert(SuperLoc.isInvalid() && "Message to super with dependent type");
2665 = SuperLoc.isValid()? SourceRange(SuperLoc)
2699 Method, true, SuperLoc.isValid(), LBracLoc,
2709 if (Method && Method->isDirectMethod() && SuperLoc.isValid()) {
2710 Diag(SuperLoc, diag::err_messaging_super_with_direct_method)
2712 SuperLoc, getLangOpts().ObjCAutoRefCount
2721 if (!SuperLoc.isValid()) {
2745 if (SuperLoc.isValid())
2747 Context, ReturnType, VK, LBracLoc, SuperLoc, /*IsInstanceSuper=*/false,
2782 /*SuperLoc=*/SourceLocation(), Sel,
2791 /*SuperLoc=*/!Receiver ? Loc : SourceLocation(),
2822 /// sending to the superclass instance and \p SuperLoc must be a valid
2830 /// \param SuperLoc The location of the "super" keyword in a
2844 Expr *Receiver, QualType ReceiverType, SourceLocation SuperLoc,
2848 assert((Receiver || SuperLoc.isValid()) && "If the Receiver is null, the "
2849 "SuperLoc must be valid so we can "
2854 SourceLocation Loc = SuperLoc.isValid() ? SuperLoc : Receiver->getBeginLoc();
2856 SuperLoc.isValid()? SuperLoc : Receiver->getSourceRange();
2889 assert(SuperLoc.isInvalid() && "Message to super with dependent type");
3078 Diag(Receiver ? Receiver->getBeginLoc() : SuperLoc,
3171 if (SuperLoc.isValid()) {
3174 Diag(SuperLoc, diag::err_messaging_super_with_direct_method);
3177 SuperLoc, Method->getClassInterface()->getName()));
3179 Builder.AddFixItHint(FixItHint::CreateReplacement(SuperLoc, "self"));
3191 (SuperLoc.isValid() || isSelfExpr(Receiver))) {
3193 if (SuperLoc.isValid()) {
3214 Diag(SelLoc, SuperLoc.isValid() ?
3224 (SuperLoc.isValid() || isSelfExpr(Receiver))) {
3225 if (SuperLoc.isValid()) {
3241 Method, ClassMessage, SuperLoc.isValid(),
3336 if (SuperLoc.isValid())
3338 Context, ReturnType, VK, LBracLoc, SuperLoc, /*IsInstanceSuper=*/true,
3372 (SuperLoc.isValid() || isSelfExpr(Receiver))) {
3448 /*SuperLoc=*/SourceLocation(), Sel,