Lines Matching refs:diag
56 Diag(S->getLocStart(), diag::err_cfstring_literal_not_string_constant) in ParseObjCStringLiteral()
113 Diag(S->getLocStart(), diag::err_no_nsconstant_string_class) << NSIdent in BuildObjCStringLiteral()
154 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName(); in validateBoxingMethod()
161 S.Diag(Loc, diag::err_objc_literal_method_sig) in validateBoxingMethod()
163 S.Diag(Method->getLocation(), diag::note_objc_literal_method_return) in validateBoxingMethod()
182 S.Diag(Loc, diag::err_invalid_nsnumber_type) in getNSNumberFactoryMethod()
214 S.Diag(Loc, diag::err_undeclared_nsnumber); in getNSNumberFactoryMethod()
218 S.Diag(Loc, diag::err_undeclared_nsnumber); in getNSNumberFactoryMethod()
382 S.Diag(OrigElement->getLocStart(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
398 S.Diag(OrigElement->getLocStart(), diag::err_box_literal_collection) in CheckObjCCollectionLiteralElement()
412 S.Diag(Element->getLocStart(), diag::err_invalid_collection_element) in CheckObjCCollectionLiteralElement()
432 diag::warn_concatenated_nsarray_literal) in CheckObjCCollectionLiteralElement()
480 Diag(SR.getBegin(), diag::err_undeclared_nsstring); in BuildObjCBoxedExpr()
484 Diag(SR.getBegin(), diag::err_undeclared_nsstring); in BuildObjCBoxedExpr()
569 Diag(SR.getBegin(), diag::err_objc_incomplete_boxed_expression_type) in BuildObjCBoxedExpr()
580 Diag(SR.getBegin(), diag::err_objc_illegal_boxed_expression_type) in BuildObjCBoxedExpr()
650 Diag(SR.getBegin(), diag::err_undeclared_nsarray); in BuildObjCArrayLiteral()
698 Diag(SR.getBegin(), diag::err_objc_literal_method_sig) in BuildObjCArrayLiteral()
701 diag::note_objc_literal_method_param) in BuildObjCArrayLiteral()
709 Diag(SR.getBegin(), diag::err_objc_literal_method_sig) in BuildObjCArrayLiteral()
712 diag::note_objc_literal_method_param) in BuildObjCArrayLiteral()
765 Diag(SR.getBegin(), diag::err_undeclared_nsdictionary); in BuildObjCDictionaryLiteral()
825 Diag(SR.getBegin(), diag::err_objc_literal_method_sig) in BuildObjCDictionaryLiteral()
828 diag::note_objc_literal_method_param) in BuildObjCDictionaryLiteral()
859 Diag(SR.getBegin(), diag::err_objc_literal_method_sig) in BuildObjCDictionaryLiteral()
862 diag::note_objc_literal_method_param) in BuildObjCDictionaryLiteral()
872 Diag(SR.getBegin(), diag::err_objc_literal_method_sig) in BuildObjCDictionaryLiteral()
875 diag::note_objc_literal_method_param) in BuildObjCDictionaryLiteral()
915 diag::err_pack_expansion_without_parameter_packs) in BuildObjCDictionaryLiteral()
944 diag::err_incomplete_type_objc_at_encode, in BuildObjCEncodeExpression()
952 Diag(AtLoc, diag::warn_incomplete_encoded_type) in BuildObjCEncodeExpression()
1001 S.Diag(AtLoc, diag::warning_multiple_selectors) in HelperToDiagnoseMismatchedMethodsInGlobalPool()
1004 S.Diag(Method->getLocation(), diag::note_method_declared_at) in HelperToDiagnoseMismatchedMethodsInGlobalPool()
1007 S.Diag(MatchingMethodDecl->getLocation(), diag::note_method_declared_at) in HelperToDiagnoseMismatchedMethodsInGlobalPool()
1020 S.Diags.isIgnored(diag::warning_multiple_selectors, SourceLocation())) in DiagnoseMismatchedSelectors()
1055 Diag(SelLoc, diag::warn_undeclared_selector_with_typo) in ParseObjCSelectorExpression()
1060 Diag(SelLoc, diag::warn_undeclared_selector) << Sel; in ParseObjCSelectorExpression()
1079 Diag(AtLoc, diag::err_arc_illegal_selector) << in ParseObjCSelectorExpression()
1108 Diag(ProtoLoc, diag::err_undeclared_protocol) << ProtocolId; in ParseObjCProtocolExpression()
1234 Diag(loc, diag::note_related_result_type_explicit) in EmitRelatedResultTypeNoteForReturn()
1242 Diag(MD->getLocation(), diag::note_related_result_type_family) in EmitRelatedResultTypeNoteForReturn()
1268 Diag(Method->getLocation(), diag::note_related_result_type_inferred) in EmitRelatedResultTypeNote()
1308 DiagID = diag::err_arc_method_not_found; in CheckMessageArgumentTypes()
1310 DiagID = isClassMessage ? diag::warn_class_method_not_found in CheckMessageArgumentTypes()
1311 : diag::warn_inst_method_not_found; in CheckMessageArgumentTypes()
1316 DiagID = diag::error_method_not_found_with_typo; in CheckMessageArgumentTypes()
1318 DiagID = isClassMessage ? diag::warn_class_method_not_found_with_typo in CheckMessageArgumentTypes()
1319 : diag::warn_instance_method_not_found_with_typo; in CheckMessageArgumentTypes()
1337 Diag(ThisClass->getLocation(), diag::note_receiver_class_declared); in CheckMessageArgumentTypes()
1340 Diag(RecRange.getBegin(),diag::note_receiver_expr_here) in CheckMessageArgumentTypes()
1369 Diag(SelLoc, diag::err_typecheck_call_too_few_args) in CheckMessageArgumentTypes()
1409 diag::err_call_incomplete_argument, argExpr)) in CheckMessageArgumentTypes()
1436 diag::err_typecheck_call_too_many_args) in CheckMessageArgumentTypes()
1521 Diag(MemberLoc, diag::err_invalid_property_name) in HandleExprPropertyRefExpr()
1531 diag::err_property_not_found_forward_class, in HandleExprPropertyRefExpr()
1617 diag::warn_property_access_suggest) in HandleExprPropertyRefExpr()
1641 diagnoseTypo(Corrected, PDiag(diag::err_property_not_found_suggest) in HandleExprPropertyRefExpr()
1655 diag::err_property_not_as_forward_class, in HandleExprPropertyRefExpr()
1660 diag::err_ivar_access_using_property_syntax_suggest) in HandleExprPropertyRefExpr()
1666 Diag(MemberLoc, diag::err_property_not_found) in HandleExprPropertyRefExpr()
1669 Diag(Setter->getLocation(), diag::note_getter_unavailable) in HandleExprPropertyRefExpr()
1699 Diag(receiverNameLoc, diag::error_root_class_cannot_use_super) in ActOnClassPropertyRefExpr()
1722 Diag(receiverNameLoc, diag::err_expected_either) << tok::identifier in ActOnClassPropertyRefExpr()
1773 return ExprError(Diag(propertyNameLoc, diag::err_property_not_found) in ActOnClassPropertyRefExpr()
1874 PDiag(diag::err_unknown_receiver_suggest) << Name); in getObjCMessageKind()
1881 PDiag(diag::err_unknown_receiver_suggest) << Name); in getObjCMessageKind()
1903 Diag(SuperLoc, diag::err_invalid_receiver_to_message_super); in ActOnSuperMessage()
1909 Diag(SuperLoc, diag::error_no_super_class_message) in ActOnSuperMessage()
1917 Diag(SuperLoc, diag::error_root_class_cannot_use_super) in ActOnSuperMessage()
2003 applyCocoaAPICheck(S, Msg, diag::warn_objc_redundant_literal_use, in checkCocoaAPI()
2037 S.Diag(FormatExpr->getExprLoc(), diag::warn_objc_cdirective_format_string) in DiagnoseCStringFormatDirectiveInObjCAPI()
2040 S.Diag(Method->getLocation(), diag::note_method_declared_at) in DiagnoseCStringFormatDirectiveInObjCAPI()
2087 Diag(Loc, diag::err_missing_open_square_message_send) in BuildClassMessage()
2113 Diag(Loc, diag::err_invalid_receiver_class_message) in BuildClassMessage()
2128 ? diag::err_arc_receiver_forward_class in BuildClassMessage()
2129 : diag::warn_receiver_forward_class), in BuildClassMessage()
2135 Diag(Method->getLocation(), diag::note_method_sent_forward_class) in BuildClassMessage()
2165 diag::err_illegal_message_expr_incomplete_type)) in BuildClassMessage()
2174 Diag(Loc, diag::warn_direct_initialize_call); in BuildClassMessage()
2175 Diag(Method->getLocation(), diag::note_method_declared_at) in BuildClassMessage()
2182 Diag(Loc, diag::warn_direct_super_initialize_call); in BuildClassMessage()
2183 Diag(Method->getLocation(), diag::note_method_declared_at) in BuildClassMessage()
2185 Diag(CurMeth->getLocation(), diag::note_method_declared_at) in BuildClassMessage()
2298 Diag(Loc, diag::err_missing_open_square_message_send) in BuildInstanceMessage()
2347 Diag(Loc, diag::warn_bad_receiver_type) in BuildInstanceMessage()
2365 diag::err_incomplete_receiver_type)) in BuildInstanceMessage()
2416 Diag(SelLoc, diag::warn_instance_method_on_class_found) in BuildInstanceMessage()
2418 Diag(Method->getLocation(), diag::note_method_declared_at) in BuildInstanceMessage()
2448 Diag(SelLoc, diag::warn_root_inst_method_not_found) in BuildInstanceMessage()
2483 ? diag::err_arc_receiver_forward_instance in BuildInstanceMessage()
2484 : diag::warn_receiver_forward_instance, in BuildInstanceMessage()
2492 : SuperLoc, diag::note_receiver_is_id); in BuildInstanceMessage()
2507 Diag(SelLoc, diag::err_arc_may_not_respond) in BuildInstanceMessage()
2529 Diag(SelLoc, diag::warn_maynot_respond) in BuildInstanceMessage()
2539 Diag(Loc, diag::err_bad_receiver_type) in BuildInstanceMessage()
2575 diag::warn_objc_designated_init_non_designated_init_call : in BuildInstanceMessage()
2576 diag::warn_objc_designated_init_non_super_designated_init_call); in BuildInstanceMessage()
2578 diag::note_objc_designated_init_marked_here); in BuildInstanceMessage()
2586 Diag(SelLoc, diag::warn_objc_secondary_init_super_init_call); in BuildInstanceMessage()
2607 diag::err_illegal_message_expr_incomplete_type)) in BuildInstanceMessage()
2635 Diag(SelLoc, diag::err_arc_illegal_explicit_message) in BuildInstanceMessage()
2663 diag::err_arc_perform_selector_retains); in BuildInstanceMessage()
2664 Diag(SelMethod->getLocation(), diag::note_method_declared_at) in BuildInstanceMessage()
2673 diag::err_arc_perform_selector_retains); in BuildInstanceMessage()
2674 Diag(SelMethod->getLocation(), diag::note_method_declared_at) in BuildInstanceMessage()
2682 Diag(SelLoc, diag::warn_arc_perform_selector_leaks); in BuildInstanceMessage()
2683 Diag(Args[0]->getExprLoc(), diag::note_used_here); in BuildInstanceMessage()
2735 !Diags.isIgnored(diag::warn_arc_repeated_use_of_weak, LBracLoc)) in BuildInstanceMessage()
3258 S.Diag(loc, diag::err_arc_cast_requires_bridge) in diagnoseObjCARCConversion()
3273 (CCK != Sema::CCK_OtherCast) ? S.Diag(noteLoc, diag::note_arc_bridge) in diagnoseObjCARCConversion()
3274 : S.Diag(noteLoc, diag::note_arc_cstyle_bridge); in diagnoseObjCARCConversion()
3284 S.Diag(noteLoc, diag::note_arc_cstyle_bridge_transfer) << castExprType : in diagnoseObjCARCConversion()
3286 diag::note_arc_bridge_transfer) in diagnoseObjCARCConversion()
3300 S.Diag(loc, diag::err_arc_cast_requires_bridge) in diagnoseObjCARCConversion()
3314 (CCK != Sema::CCK_OtherCast) ? S.Diag(noteLoc, diag::note_arc_bridge) in diagnoseObjCARCConversion()
3315 : S.Diag(noteLoc, diag::note_arc_cstyle_bridge); in diagnoseObjCARCConversion()
3324 S.Diag(noteLoc, diag::note_arc_cstyle_bridge_retained) << castType : in diagnoseObjCARCConversion()
3326 diag::note_arc_bridge_retained) in diagnoseObjCARCConversion()
3337 S.Diag(loc, diag::err_arc_mismatched_cast) in diagnoseObjCARCConversion()
3372 S.Diag(castExpr->getLocStart(), diag::warn_objc_invalid_bridge) in CheckObjCBridgeNSCast()
3384 S.Diag(castExpr->getLocStart(), diag::warn_objc_invalid_bridge) in CheckObjCBridgeNSCast()
3386 S.Diag(TDNDecl->getLocStart(), diag::note_declared_at); in CheckObjCBridgeNSCast()
3387 S.Diag(Target->getLocStart(), diag::note_declared_at); in CheckObjCBridgeNSCast()
3393 S.Diag(castExpr->getLocStart(), diag::err_objc_cf_bridged_not_interface) in CheckObjCBridgeNSCast()
3395 S.Diag(TDNDecl->getLocStart(), diag::note_declared_at); in CheckObjCBridgeNSCast()
3397 S.Diag(Target->getLocStart(), diag::note_declared_at); in CheckObjCBridgeNSCast()
3437 S.Diag(castExpr->getLocStart(), diag::warn_objc_invalid_bridge_to_cf) in CheckObjCBridgeCFCast()
3439 S.Diag(TDNDecl->getLocStart(), diag::note_declared_at); in CheckObjCBridgeCFCast()
3451 S.Diag(castExpr->getLocStart(), diag::warn_objc_invalid_bridge_to_cf) in CheckObjCBridgeCFCast()
3453 S.Diag(TDNDecl->getLocStart(), diag::note_declared_at); in CheckObjCBridgeCFCast()
3454 S.Diag(Target->getLocStart(), diag::note_declared_at); in CheckObjCBridgeCFCast()
3460 S.Diag(castExpr->getLocStart(), diag::err_objc_ns_bridged_invalid_cfobject) in CheckObjCBridgeCFCast()
3462 S.Diag(TDNDecl->getLocStart(), diag::note_declared_at); in CheckObjCBridgeCFCast()
3464 S.Diag(Target->getLocStart(), diag::note_declared_at); in CheckObjCBridgeCFCast()
3586 Diag(Loc, diag::err_objc_bridged_related_invalid_class) << RCId in checkObjCBridgeRelatedComponents()
3588 Diag(TDNDecl->getLocStart(), diag::note_declared_at); in checkObjCBridgeRelatedComponents()
3595 Diag(Loc, diag::err_objc_bridged_related_invalid_class_name) << RCId in checkObjCBridgeRelatedComponents()
3597 Diag(TDNDecl->getLocStart(), diag::note_declared_at); in checkObjCBridgeRelatedComponents()
3599 Diag(Target->getLocStart(), diag::note_declared_at); in checkObjCBridgeRelatedComponents()
3608 Diag(Loc, diag::err_objc_bridged_related_known_method) in checkObjCBridgeRelatedComponents()
3610 Diag(TDNDecl->getLocStart(), diag::note_declared_at); in checkObjCBridgeRelatedComponents()
3620 Diag(Loc, diag::err_objc_bridged_related_known_method) in checkObjCBridgeRelatedComponents()
3622 Diag(TDNDecl->getLocStart(), diag::note_declared_at); in checkObjCBridgeRelatedComponents()
3657 Diag(Loc, diag::err_objc_bridged_related_known_method) in CheckObjCBridgeRelatedConversions()
3661 Diag(RelatedClass->getLocStart(), diag::note_declared_at); in CheckObjCBridgeRelatedConversions()
3662 Diag(TDNDecl->getLocStart(), diag::note_declared_at); in CheckObjCBridgeRelatedConversions()
3686 Diag(Loc, diag::err_objc_bridged_related_known_method) in CheckObjCBridgeRelatedConversions()
3696 Diag(Loc, diag::err_objc_bridged_related_known_method) in CheckObjCBridgeRelatedConversions()
3701 Diag(RelatedClass->getLocStart(), diag::note_declared_at); in CheckObjCBridgeRelatedConversions()
3702 Diag(TDNDecl->getLocStart(), diag::note_declared_at); in CheckObjCBridgeRelatedConversions()
3753 Diag(loc, diag::err_arc_nolifetime_behavior); in CheckObjCARCConversion()
3955 Diag(BridgeKeywordLoc, diag::err_arc_bridge_cast_wrong_kind) in BuildObjCBridgedCast()
3962 Diag(BridgeKeywordLoc, diag::note_arc_bridge) in BuildObjCBridgedCast()
3964 Diag(BridgeKeywordLoc, diag::note_arc_bridge_transfer) in BuildObjCBridgedCast()
3998 Diag(BridgeKeywordLoc, diag::err_arc_bridge_cast_wrong_kind) in BuildObjCBridgedCast()
4006 Diag(BridgeKeywordLoc, diag::note_arc_bridge) in BuildObjCBridgedCast()
4008 Diag(BridgeKeywordLoc, diag::note_arc_bridge_retained) in BuildObjCBridgedCast()
4018 Diag(LParenLoc, diag::err_arc_bridge_cast_incompatible) in BuildObjCBridgedCast()