Lines Matching full:loc
145 static bool validateBoxingMethod(Sema &S, SourceLocation Loc,
150 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName();
157 S.Diag(Loc, diag::err_objc_literal_method_sig)
169 static ObjCMethodDecl *getNSNumberFactoryMethod(Sema &S, SourceLocation Loc,
178 S.Diag(Loc, diag::err_invalid_nsnumber_type)
199 Loc, Sema::LookupOrdinaryName);
210 S.Diag(Loc, diag::err_undeclared_nsnumber);
214 S.Diag(Loc, diag::err_undeclared_nsnumber);
245 if (!validateBoxingMethod(S, Loc, S.NSNumberDecl, Sel, Method))
1041 ObjCMethodDecl *Sema::tryCaptureObjCSelf(SourceLocation Loc) {
1051 tryCaptureVariable(method->getSelfDecl(), Loc);
1148 SourceLocation loc;
1152 loc = range.getBegin();
1154 if (loc.isInvalid())
1155 loc = overridden->getLocation();
1156 Diag(loc, diag::note_related_result_type_explicit)
1429 SourceLocation Loc = RExpr->getLocStart();
1468 S.Diag(Loc, diag::warn_receiver_is_weak)
1476 S.Diag(Loc, diag::note_arc_assign_to_strong);
1932 SourceLocation Loc,
1941 /*SuperLoc=*/isSuperReceiver ? Loc : SourceLocation(),
1942 Sel, Method, Loc, Loc, Loc, Args,
2029 SourceLocation Loc = SuperLoc.isValid()? SuperLoc
2032 Diag(Loc, diag::err_missing_open_square_message_send)
2033 << FixItHint::CreateInsertion(Loc, "[");
2034 LBracLoc = Loc;
2040 SelLoc = Loc;
2059 Diag(Loc, diag::err_invalid_receiver_class_message)
2072 if (RequireCompleteType(Loc, Context.getObjCInterfaceType(Class),
2158 SourceLocation Loc,
2163 /*SuperLoc=*/!Receiver ? Loc : SourceLocation(),
2164 Sel, Method, Loc, Loc, Loc, Args,
2207 SourceLocation Loc = SuperLoc.isValid()? SuperLoc : Receiver->getLocStart();
2214 SelLoc = Loc;
2217 Diag(Loc, diag::err_missing_open_square_message_send)
2218 << FixItHint::CreateInsertion(Loc, "[");
2219 LBracLoc = Loc;
2267 Diag(Loc, diag::warn_bad_receiver_type)
2383 if (RequireCompleteType(Loc, OCIType->getPointeeType(),
2433 Diag(Loc, diag::err_bad_receiver_type)
2601 SourceLocation Loc = OSE->getAtLoc();
2604 if (Pos != S.ReferencedSelectors.end() && Pos->second == Loc)
3044 SourceLocation loc =
3047 if (S.makeUnavailableInSystemHeader(loc,
3070 SourceLocation noteLoc = afterLParen.isValid() ? afterLParen : loc;
3075 S.Diag(loc, diag::err_arc_cast_requires_bridge)
3116 S.Diag(loc, diag::err_arc_cast_requires_bridge)
3152 S.Diag(loc, diag::err_arc_mismatched_cast)
3191 SourceLocation loc =
3194 Diag(loc, diag::err_arc_nolifetime_behavior);