Lines Matching refs:diag

107   Diag(loc, diag::err_arc_init_method_unrelated_result_type);  in checkInitMethod()
139 diag::warn_related_result_type_compatibility_class) in CheckObjCMethodOverride()
145 diag::warn_related_result_type_compatibility_protocol) in CheckObjCMethodOverride()
152 diag::note_related_result_type_family) in CheckObjCMethodOverride()
157 diag::note_related_result_type_overridden); in CheckObjCMethodOverride()
163 diag::err_nsreturns_retained_attribute_mismatch) << 1; in CheckObjCMethodOverride()
164 Diag(Overridden->getLocation(), diag::note_previous_decl) in CheckObjCMethodOverride()
170 diag::err_nsreturns_retained_attribute_mismatch) << 0; in CheckObjCMethodOverride()
171 Diag(Overridden->getLocation(), diag::note_previous_decl) in CheckObjCMethodOverride()
184 diag::err_nsconsumed_attribute_mismatch); in CheckObjCMethodOverride()
185 Diag(oldDecl->getLocation(), diag::note_previous_decl) in CheckObjCMethodOverride()
212 Diag(method->getLocation(), diag::error_dealloc_bad_result_type) in CheckARCMethodDecl()
216 Diag(method->getLocation(), diag::error_dealloc_bad_result_type) in CheckARCMethodDecl()
256 S.Diag(ImplLoc, diag::warn_deprecated_def) << select; in DiagnoseObjCImplementedDeprecations()
258 S.Diag(ND->getLocation(), diag::note_method_declared_at) in DiagnoseObjCImplementedDeprecations()
261 S.Diag(ND->getLocation(), diag::note_previous_decl) << "class"; in DiagnoseObjCImplementedDeprecations()
330 Diag(Param->getLocation(), diag::warn_arc_strong_pointer_objc_pointer) << in ActOnStartOfObjCMethodDef()
344 Diag(MDecl->getLocation(), diag::err_arc_illegal_method_def) in ActOnStartOfObjCMethodDef()
465 Diag(ClassLoc, diag::err_redefinition_different_kind) << ClassName; in ActOnStartClassInterface()
466 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassInterface()
495 Diag(AtInterfaceLoc, diag::err_duplicate_class_def) in ActOnStartClassInterface()
497 Diag(Def->getLocation(), diag::note_previous_definition); in ActOnStartClassInterface()
524 diagnoseTypo(Corrected, PDiag(diag::err_undef_superclass_suggest) in ActOnStartClassInterface()
531 Diag(SuperLoc, diag::err_recursive_superclass) in ActOnStartClassInterface()
566 Diag(SuperLoc, diag::err_redefinition_different_kind) << SuperName; in ActOnStartClassInterface()
567 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassInterface()
573 Diag(SuperLoc, diag::err_undef_superclass) in ActOnStartClassInterface()
577 diag::err_forward_superclass, in ActOnStartClassInterface()
635 Diag(AliasLocation, diag::err_conflicting_aliasing_type) << AliasName; in ActOnCompatibilityAlias()
636 Diag(ADecl->getLocation(), diag::note_previous_declaration); in ActOnCompatibilityAlias()
655 Diag(ClassLocation, diag::warn_undef_interface) << ClassName; in ActOnCompatibilityAlias()
657 Diag(CDeclU->getLocation(), diag::note_previous_declaration); in ActOnCompatibilityAlias()
682 Diag(Ploc, diag::err_protocol_has_circular_dependency); in CheckForwardProtocolDeclarationForCircularDependency()
683 Diag(PrevLoc, diag::note_previous_definition); in CheckForwardProtocolDeclarationForCircularDependency()
715 Diag(ProtocolLoc, diag::warn_duplicate_protocol_def) << ProtocolName; in ActOnStartProtocolInterface()
716 Diag(Def->getLocation(), diag::note_previous_definition); in ActOnStartProtocolInterface()
795 diagnoseTypo(Corrected, PDiag(diag::err_undeclared_protocol_suggest) in FindProtocolDeclaration()
800 Diag(ProtocolId[i].second, diag::err_undeclared_protocol) in FindProtocolDeclaration()
817 Diag(ProtocolId[i].second, diag::warn_undef_protocolref) in FindProtocolDeclaration()
819 Diag(UndefinedProtocol->getLocation(), diag::note_protocol_decl_undefined) in FindProtocolDeclaration()
845 Diag(Method->getLocation(), diag::err_duplicate_method_decl) in DiagnoseClassExtensionDupMethods()
847 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in DiagnoseClassExtensionDupMethods()
899 diag::err_category_forward_interface, in ActOnStartCategoryInterface()
910 Diag(ClassLoc, diag::err_undef_interface) << ClassName; in ActOnStartCategoryInterface()
915 Diag(ClassLoc, diag::err_class_extension_after_impl) << ClassName; in ActOnStartCategoryInterface()
917 diag::note_implementation_declared); in ActOnStartCategoryInterface()
925 Diag(CategoryLoc, diag::warn_dup_category_def) in ActOnStartCategoryInterface()
927 Diag(Previous->getLocation(), diag::note_previous_definition); in ActOnStartCategoryInterface()
975 Diag(ClassLoc, diag::err_undef_interface) << ClassName; in ActOnStartCategoryImplementation()
978 diag::err_undef_interface)) { in ActOnStartCategoryImplementation()
992 Diag(ClassLoc, diag::err_dup_implementation_category) << ClassName in ActOnStartCategoryImplementation()
995 diag::note_previous_definition); in ActOnStartCategoryImplementation()
1022 Diag(ClassLoc, diag::err_redefinition_different_kind) << ClassName; in ActOnStartClassImplementation()
1023 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1026 diag::warn_undef_interface); in ActOnStartClassImplementation()
1038 PDiag(diag::warn_undef_interface_suggest) << ClassName, in ActOnStartClassImplementation()
1041 Diag(ClassLoc, diag::warn_undef_interface) << ClassName; in ActOnStartClassImplementation()
1052 Diag(SuperClassLoc, diag::err_redefinition_different_kind) in ActOnStartClassImplementation()
1054 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1060 Diag(SuperClassLoc, diag::err_undef_superclass) in ActOnStartClassImplementation()
1065 Diag(SuperClassLoc, diag::err_conflicting_super_class) in ActOnStartClassImplementation()
1067 Diag(SDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1109 Diag(ClassLoc, diag::err_dup_implementation_class) << ClassName; in ActOnStartClassImplementation()
1111 diag::note_previous_definition); in ActOnStartClassImplementation()
1172 Diag(ImpDecl->getLocation(), diag::warn_on_superclass_use); in CheckImplementationIvars()
1177 Diag(ImplIvar->getLocation(), diag::err_duplicate_ivar_declaration); in CheckImplementationIvars()
1178 Diag(ClsIvar->getLocation(), diag::note_previous_definition); in CheckImplementationIvars()
1185 Diag(ImplIvar->getLocation(), diag::err_duplicate_ivar_declaration); in CheckImplementationIvars()
1186 Diag(ClsExtIvar->getLocation(), diag::note_previous_definition); in CheckImplementationIvars()
1211 Diag(ImplIvar->getLocation(), diag::err_conflicting_ivar_type) in CheckImplementationIvars()
1214 Diag(ClsIvar->getLocation(), diag::note_previous_definition); in CheckImplementationIvars()
1219 diag::err_conflicting_ivar_bitwidth) << ImplIvar->getIdentifier(); in CheckImplementationIvars()
1221 diag::note_previous_definition); in CheckImplementationIvars()
1225 Diag(ImplIvar->getLocation(), diag::err_conflicting_ivar_name) in CheckImplementationIvars()
1227 Diag(ClsIvar->getLocation(), diag::note_previous_definition); in CheckImplementationIvars()
1233 Diag(ivars[j]->getLocation(), diag::err_inconsistent_ivar_count); in CheckImplementationIvars()
1235 Diag(IVI->getLocation(), diag::err_inconsistent_ivar_count); in CheckImplementationIvars()
1270 S.Diag(MethodLoc, diag::note_method_declared_at) << method; in WarnUndefinedMethod()
1356 ? diag::warn_conflicting_overriding_ret_type_modifiers in CheckMethodOverrideReturn()
1357 : diag::warn_conflicting_ret_type_modifiers)) in CheckMethodOverrideReturn()
1360 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn()
1374 IsOverridingMode ? diag::warn_conflicting_overriding_ret_types in CheckMethodOverrideReturn()
1375 : diag::warn_conflicting_ret_types; in CheckMethodOverrideReturn()
1391 IsOverridingMode ? diag::warn_non_covariant_overriding_ret_types in CheckMethodOverrideReturn()
1392 : diag::warn_non_covariant_ret_types; in CheckMethodOverrideReturn()
1401 ? diag::note_previous_declaration in CheckMethodOverrideReturn()
1402 : diag::note_previous_definition) in CheckMethodOverrideReturn()
1421 diag::warn_conflicting_overriding_param_modifiers) in CheckMethodOverrideParam()
1425 diag::warn_conflicting_param_modifiers) in CheckMethodOverrideParam()
1428 S.Diag(IfaceVar->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideParam()
1444 IsOverridingMode ? diag::warn_conflicting_overriding_param_types in CheckMethodOverrideParam()
1445 : diag::warn_conflicting_param_types; in CheckMethodOverrideParam()
1461 IsOverridingMode ? diag::warn_non_contravariant_overriding_param_types in CheckMethodOverrideParam()
1462 : diag::warn_non_contravariant_param_types; in CheckMethodOverrideParam()
1470 (IsOverridingMode ? diag::note_previous_declaration in CheckMethodOverrideParam()
1471 : diag::note_previous_definition)) in CheckMethodOverrideParam()
1494 unsigned errorID = diag::err_arc_lost_method_convention; in checkMethodFamilyMismatch()
1495 unsigned noteID = diag::note_arc_lost_method_convention; in checkMethodFamilyMismatch()
1499 errorID = diag::err_arc_gained_method_convention; in checkMethodFamilyMismatch()
1500 noteID = diag::note_arc_gained_method_convention; in checkMethodFamilyMismatch()
1569 diag::warn_conflicting_variadic); in WarnConflictingTypedMethods()
1570 Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in WarnConflictingTypedMethods()
1592 diag::warn_conflicting_overriding_variadic); in CheckConflictingOverridingMethod()
1593 Diag(Overridden->getLocation(), diag::note_previous_declaration); in CheckConflictingOverridingMethod()
1634 diag::warn_category_method_impl_match); in WarnExactTypedMethods()
1635 Diag(MethodDecl->getLocation(), diag::note_method_declared_at) in WarnExactTypedMethods()
1767 unsigned DIAG = diag::warn_unimplemented_protocol_method; in CheckProtocolMethodDefs()
1790 unsigned DIAG = diag::warn_unimplemented_protocol_method; in CheckProtocolMethodDefs()
1823 diag::warn_undef_method_impl); in MatchAllMethodDeclarations()
1849 diag::warn_undef_method_impl); in MatchAllMethodDeclarations()
2033 Diag(AtClassLoc, diag::err_redefinition_different_kind) << IdentList[i]; in ActOnForwardClassDeclaration()
2034 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
2041 Diag(AtClassLoc, diag::warn_forward_class_redefinition) in ActOnForwardClassDeclaration()
2043 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
2403 !Diags.isIgnored(diag::warn_strict_multiple_method_decl, R.getBegin()); in DiagnoseMultipleMethodInGlobalPool()
2431 Diag(R.getBegin(), diag::err_arc_multiple_method_decl) << Sel << R; in DiagnoseMultipleMethodInGlobalPool()
2433 Diag(R.getBegin(), diag::warn_strict_multiple_method_decl) << Sel << R; in DiagnoseMultipleMethodInGlobalPool()
2435 Diag(R.getBegin(), diag::warn_multiple_method_decl) << Sel << R; in DiagnoseMultipleMethodInGlobalPool()
2438 issueError ? diag::note_possibility : diag::note_using) in DiagnoseMultipleMethodInGlobalPool()
2441 Diag(Methods[I]->getLocStart(), diag::note_also_found) in DiagnoseMultipleMethodInGlobalPool()
2573 Diag(Ivar->getLocation(), diag::err_duplicate_member) << II; in DiagnoseDuplicateIvars()
2574 Diag(prevIvar->getLocation(), diag::note_previous_declaration); in DiagnoseDuplicateIvars()
2633 Diag(Method->getLocation(), diag::err_duplicate_method_decl) in ActOnAtEnd()
2635 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
2642 Diag(Method->getLocation(), diag::warn_duplicate_method_decl) in ActOnAtEnd()
2644 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
2657 Diag(Method->getLocation(), diag::err_duplicate_method_decl) in ActOnAtEnd()
2659 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
2666 Diag(Method->getLocation(), diag::warn_duplicate_method_decl) in ActOnAtEnd()
2668 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
2738 Diag(DeclLoc, diag::warn_objc_root_class_missing) in ActOnAtEnd()
2747 Diag(SuperClassLoc, diag::note_objc_needs_superclass) in ActOnAtEnd()
2750 Diag(SuperClassLoc, diag::note_objc_needs_superclass); in ActOnAtEnd()
2755 Diag(IDecl->getLocation(), diag::err_objc_root_class_subclass); in ActOnAtEnd()
2786 Diag(VDecl->getLocation(), diag::err_objc_var_decl_inclass); in ActOnAtEnd()
3087 Diag((*ParamI)->getLocation(), diag::ext_typecheck_base_super) in CheckObjCMethodOverrides()
3089 Diag(overridden->getLocation(), diag::note_previous_declaration); in CheckObjCMethodOverrides()
3114 Diag(MethodLoc, diag::error_missing_method_context); in ActOnMethodDeclaration()
3132 Diag(MethodLoc, diag::warn_missing_method_return_type) in ActOnMethodDeclaration()
3165 (MethodDefinition ? diag::warn_method_param_redefinition in ActOnMethodDeclaration()
3166 : diag::warn_method_param_declaration)) in ActOnMethodDeclaration()
3169 diag::note_previous_declaration); in ActOnMethodDeclaration()
3190 Diag(Param->getLocation(), diag::err_block_on_nonlocal); in ActOnMethodDeclaration()
3244 Diag(ObjCMethod->getLocation(), diag::warn_dealloc_in_category) in ActOnMethodDeclaration()
3253 Diag(ObjCMethod->getLocation(), diag::err_duplicate_method_decl) in ActOnMethodDeclaration()
3255 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()
3334 Diag(D->getLocation(), diag::err_objc_decls_may_only_appear_in_global_scope); in CheckObjCDeclScope()
3348 Diag(DeclStart, diag::err_undef_interface) << ClassName; in ActOnDefs()
3352 Diag(DeclStart, diag::err_atdef_nonfragile_interface); in ActOnDefs()
3393 Diag(IdLoc, diag::err_arg_with_address_space); in BuildObjCExceptionDecl()
3405 Diag(IdLoc ,diag::err_catch_param_not_objc_type); in BuildObjCExceptionDecl()
3408 Diag(IdLoc, diag::err_illegal_qualifiers_on_catch_parm); in BuildObjCExceptionDecl()
3430 Diag(DS.getStorageClassSpecLoc(), diag::warn_register_objc_catch_parm) in ActOnObjCExceptionDecl()
3433 Diag(DS.getStorageClassSpecLoc(), diag::err_storage_spec_on_catch_parm) in ActOnObjCExceptionDecl()
3438 diag::err_invalid_thread) in ActOnObjCExceptionDecl()
3460 Diag(D.getIdentifierLoc(), diag::err_qualified_objc_catch_parm) in ActOnObjCExceptionDecl()
3473 Diag(New->getLocation(), diag::err_block_on_nonlocal); in ActOnObjCExceptionDecl()
3508 Diag(Loc, diag::warn_unimplemented_selector) << Sel; in DiagnoseUseOfUnimplementedSelectors()
3581 unsigned DIAG = diag::warn_unused_property_backing_ivar; in DiagnoseUnusedBackingIvarInAccessor()
3602 Diag(PDecl->getLocation(), diag::note_property_declare); in DiagnoseUnusedBackingIvarInAccessor()