Lines Matching refs:Loc

147 static bool validateBoxingMethod(Sema &S, SourceLocation Loc,
152 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName();
159 S.Diag(Loc, diag::err_objc_literal_method_sig)
197 SourceLocation Loc,
202 S.Diag(Loc, diag::err_undeclared_objc_literal_class)
206 S.Diag(Loc, diag::err_undeclared_objc_literal_class)
219 SourceLocation Loc,
223 NamedDecl *IF = S.LookupSingleName(S.TUScope, II, Loc,
233 if (!ValidateObjCLiteralInterfaceDecl(S, ID, Loc, LiteralKind)) {
242 static ObjCMethodDecl *getNSNumberFactoryMethod(Sema &S, SourceLocation Loc,
251 S.Diag(Loc, diag::err_invalid_nsnumber_type)
269 S.NSNumberDecl = LookupObjCInterfaceDeclForLiteral(S, Loc,
304 if (!validateBoxingMethod(S, Loc, S.NSNumberDecl, Sel, Method))
513 SourceLocation Loc = SR.getBegin();
521 NSStringDecl = LookupObjCInterfaceDeclForLiteral(*this, Loc,
584 if (!validateBoxingMethod(*this, Loc, NSStringDecl,
634 BoxingMethod = getNSNumberFactoryMethod(*this, Loc, ValueType);
638 Diag(Loc, diag::err_objc_incomplete_boxed_expression_type)
643 BoxingMethod = getNSNumberFactoryMethod(*this, Loc,
653 NSValueDecl = LookupObjCInterfaceDeclForLiteral(*this, Loc,
712 if (!validateBoxingMethod(*this, Loc, NSValueDecl,
720 Diag(Loc, diag::err_objc_non_trivially_copyable_boxed_expression_type)
730 Diag(Loc, diag::err_objc_illegal_boxed_expression_type)
735 DiagnoseUseOfDecl(BoxingMethod, Loc);
794 SourceLocation Loc = SR.getBegin();
797 NSArrayDecl = LookupObjCInterfaceDeclForLiteral(*this, Loc,
839 if (!validateBoxingMethod(*this, Loc, NSArrayDecl, Sel, Method))
899 SourceLocation Loc = SR.getBegin();
902 NSDictionaryDecl = LookupObjCInterfaceDeclForLiteral(*this, Loc,
1298 ObjCMethodDecl *Sema::tryCaptureObjCSelf(SourceLocation Loc) {
1308 tryCaptureVariable(method->getSelfDecl(), Loc);
2308 SourceLocation Loc,
2317 /*SuperLoc=*/isSuperReceiver ? Loc : SourceLocation(),
2318 Sel, Method, Loc, Loc, Loc, Args,
2366 static void checkFoundationAPI(Sema &S, SourceLocation Loc,
2401 S.Diag(Loc, diag::warn_objc_unsafe_perform_selector)
2489 SourceLocation Loc = SuperLoc.isValid()? SuperLoc
2492 Diag(Loc, diag::err_missing_open_square_message_send)
2493 << FixItHint::CreateInsertion(Loc, "[");
2494 LBracLoc = Loc;
2500 SelectorSlotLocs = Loc;
2519 Diag(Loc, diag::err_invalid_receiver_class_message)
2532 if (RequireCompleteType(Loc, Context.getObjCInterfaceType(Class),
2579 Diag(Loc, diag::warn_direct_initialize_call);
2587 Diag(Loc, diag::warn_direct_super_initialize_call);
2646 SourceLocation Loc,
2651 /*SuperLoc=*/!Receiver ? Loc : SourceLocation(),
2652 Sel, Method, Loc, Loc, Loc, Args,
2717 SourceLocation Loc = SuperLoc.isValid() ? SuperLoc : Receiver->getBeginLoc();
2724 SelectorSlotLocs = Loc;
2728 Diag(Loc, diag::err_missing_open_square_message_send)
2729 << FixItHint::CreateInsertion(Loc, "[");
2730 LBracLoc = Loc;
2777 Diag(Loc, diag::warn_bad_receiver_type)
2794 if (RequireCompleteType(Loc, Receiver->getType(),
2929 if (RequireCompleteType(Loc, OCIType->getPointeeType(),
2996 Diag(Loc, diag::err_bad_receiver_type)
3254 SourceLocation Loc = OSE->getAtLoc();
3256 if (Pos != S.ReferencedSelectors.end() && Pos->second == Loc)
4077 bool Sema::checkObjCBridgeRelatedComponents(SourceLocation Loc,
4100 Diag(Loc, diag::err_objc_bridged_related_invalid_class) << RCId
4111 Diag(Loc, diag::err_objc_bridged_related_invalid_class_name) << RCId
4126 Diag(Loc, diag::err_objc_bridged_related_known_method)
4140 Diag(Loc, diag::err_objc_bridged_related_known_method)
4151 Sema::CheckObjCBridgeRelatedConversions(SourceLocation Loc,
4165 if (!checkObjCBridgeRelatedComponents(Loc, DestType, SrcType, RelatedClass,
4181 Diag(Loc, diag::err_objc_bridged_related_known_method)
4214 Diag(Loc, diag::err_objc_bridged_related_known_method)
4224 Diag(Loc, diag::err_objc_bridged_related_known_method)