Lines Matching refs:diag
108 Diag(loc, diag::err_arc_init_method_unrelated_result_type); in checkInitMethod()
140 diag::warn_related_result_type_compatibility_class) in CheckObjCMethodOverride()
146 diag::warn_related_result_type_compatibility_protocol) in CheckObjCMethodOverride()
153 diag::note_related_result_type_family) in CheckObjCMethodOverride()
158 diag::note_related_result_type_overridden); in CheckObjCMethodOverride()
164 diag::err_nsreturns_retained_attribute_mismatch) << 1; in CheckObjCMethodOverride()
165 Diag(Overridden->getLocation(), diag::note_previous_decl) in CheckObjCMethodOverride()
171 diag::err_nsreturns_retained_attribute_mismatch) << 0; in CheckObjCMethodOverride()
172 Diag(Overridden->getLocation(), diag::note_previous_decl) in CheckObjCMethodOverride()
185 diag::err_nsconsumed_attribute_mismatch); in CheckObjCMethodOverride()
186 Diag(oldDecl->getLocation(), diag::note_previous_decl) in CheckObjCMethodOverride()
213 Diag(method->getLocation(), diag::error_dealloc_bad_result_type) in CheckARCMethodDecl()
217 Diag(method->getLocation(), diag::error_dealloc_bad_result_type) in CheckARCMethodDecl()
257 S.Diag(ImplLoc, diag::warn_deprecated_def) << select; in DiagnoseObjCImplementedDeprecations()
259 S.Diag(ND->getLocation(), diag::note_method_declared_at) in DiagnoseObjCImplementedDeprecations()
262 S.Diag(ND->getLocation(), diag::note_previous_decl) << "class"; in DiagnoseObjCImplementedDeprecations()
331 Diag(Param->getLocation(), diag::warn_arc_strong_pointer_objc_pointer) << in ActOnStartOfObjCMethodDef()
345 Diag(MDecl->getLocation(), diag::err_arc_illegal_method_def) in ActOnStartOfObjCMethodDef()
487 diagnoseTypo(Corrected, PDiag(diag::err_undef_superclass_suggest) in ActOnSuperClassOfClassInterface()
494 Diag(SuperLoc, diag::err_recursive_superclass) in ActOnSuperClassOfClassInterface()
534 Diag(SuperLoc, diag::err_redefinition_different_kind) << SuperName; in ActOnSuperClassOfClassInterface()
535 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnSuperClassOfClassInterface()
541 Diag(SuperLoc, diag::err_undef_superclass) in ActOnSuperClassOfClassInterface()
545 diag::err_forward_superclass, in ActOnSuperClassOfClassInterface()
612 diag::err_objc_type_param_bound_missing_pointer) in actOnObjCTypeParam()
632 diag::err_objc_type_param_bound_nonobject) in actOnObjCTypeParam()
652 diag::err_objc_type_param_bound_explicit_nullability) in actOnObjCTypeParam()
663 diag::err_objc_type_param_bound_qualified) in actOnObjCTypeParam()
712 Diag(typeParam->getLocation(), diag::err_objc_type_param_redecl) in actOnObjCTypeParamList()
765 S.Diag(diagLoc, diag::err_objc_type_param_arity_mismatch) in checkTypeParamListConsistency()
801 auto diag = S.Diag(diagLoc, in checkTypeParamListConsistency() local
802 diag::err_objc_type_param_variance_conflict) in checkTypeParamListConsistency()
809 diag << FixItHint::CreateRemoval(newTypeParam->getVarianceLoc()); in checkTypeParamListConsistency()
820 diag << FixItHint::CreateInsertion(newTypeParam->getLocStart(), in checkTypeParamListConsistency()
823 diag << FixItHint::CreateReplacement(newTypeParam->getVarianceLoc(), in checkTypeParamListConsistency()
830 S.Diag(prevTypeParam->getLocation(), diag::note_objc_type_param_here) in checkTypeParamListConsistency()
848 S.Diag(newBoundRange.getBegin(), diag::err_objc_type_param_bound_conflict) in checkTypeParamListConsistency()
860 S.Diag(prevTypeParam->getLocation(), diag::note_objc_type_param_here) in checkTypeParamListConsistency()
882 diag::err_objc_type_param_bound_missing) in checkTypeParamListConsistency()
888 S.Diag(prevTypeParam->getLocation(), diag::note_objc_type_param_here) in checkTypeParamListConsistency()
917 Diag(ClassLoc, diag::err_redefinition_different_kind) << ClassName; in ActOnStartClassInterface()
918 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassInterface()
952 Diag(ClassLoc, diag::err_objc_parameterized_forward_class_first) in ActOnStartClassInterface()
954 Diag(prevTypeParamList->getLAngleLoc(), diag::note_previous_decl) in ActOnStartClassInterface()
987 Diag(AtInterfaceLoc, diag::err_duplicate_class_def) in ActOnStartClassInterface()
989 Diag(Def->getLocation(), diag::note_previous_definition); in ActOnStartClassInterface()
1060 Diag(AliasLocation, diag::err_conflicting_aliasing_type) << AliasName; in ActOnCompatibilityAlias()
1061 Diag(ADecl->getLocation(), diag::note_previous_declaration); in ActOnCompatibilityAlias()
1080 Diag(ClassLocation, diag::warn_undef_interface) << ClassName; in ActOnCompatibilityAlias()
1082 Diag(CDeclU->getLocation(), diag::note_previous_declaration); in ActOnCompatibilityAlias()
1107 Diag(Ploc, diag::err_protocol_has_circular_dependency); in CheckForwardProtocolDeclarationForCircularDependency()
1108 Diag(PrevLoc, diag::note_previous_definition); in CheckForwardProtocolDeclarationForCircularDependency()
1140 Diag(ProtocolLoc, diag::warn_duplicate_protocol_def) << ProtocolName; in ActOnStartProtocolInterface()
1141 Diag(Def->getLocation(), diag::note_previous_definition); in ActOnStartProtocolInterface()
1220 diagnoseTypo(Corrected, PDiag(diag::err_undeclared_protocol_suggest) in FindProtocolDeclaration()
1225 Diag(Pair.second, diag::err_undeclared_protocol) << Pair.first; in FindProtocolDeclaration()
1245 Diag(Pair.second, diag::warn_undef_protocolref) << Pair.first; in FindProtocolDeclaration()
1246 Diag(UndefinedProtocol->getLocation(), diag::note_protocol_decl_undefined) in FindProtocolDeclaration()
1366 Diag(identifierLocs[i], diag::warn_undef_protocolref) in actOnObjCTypeArgsOrProtocolQualifiers()
1368 Diag(forwardDecl->getLocation(), diag::note_protocol_decl_undefined) in actOnObjCTypeArgsOrProtocolQualifiers()
1407 Diag(firstClassNameLoc, diag::warn_objc_redundant_qualified_class_type) in actOnObjCTypeArgsOrProtocolQualifiers()
1501 Diag(loc, diag::err_objc_type_arg_missing_star) in actOnObjCTypeArgsOrProtocolQualifiers()
1573 Diag(identifierLocs[i], diag::err_objc_type_args_and_protocols) in actOnObjCTypeArgsOrProtocolQualifiers()
1595 PDiag(diag::err_undeclared_protocol_suggest) in actOnObjCTypeArgsOrProtocolQualifiers()
1606 PDiag(diag::err_unknown_typename_suggest) in actOnObjCTypeArgsOrProtocolQualifiers()
1617 PDiag(diag::err_unknown_type_or_class_name_suggest) in actOnObjCTypeArgsOrProtocolQualifiers()
1628 (lookupKind == LookupAnyName ? diag::err_objc_type_arg_missing in actOnObjCTypeArgsOrProtocolQualifiers()
1629 : lookupKind == LookupObjCProtocolName ? diag::err_undeclared_protocol in actOnObjCTypeArgsOrProtocolQualifiers()
1630 : diag::err_unknown_typename)) in actOnObjCTypeArgsOrProtocolQualifiers()
1666 Diag(Method->getLocation(), diag::err_duplicate_method_decl) in DiagnoseClassExtensionDupMethods()
1668 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in DiagnoseClassExtensionDupMethods()
1720 diag::err_category_forward_interface, in ActOnStartCategoryInterface()
1732 Diag(ClassLoc, diag::err_undef_interface) << ClassName; in ActOnStartCategoryInterface()
1737 Diag(ClassLoc, diag::err_class_extension_after_impl) << ClassName; in ActOnStartCategoryInterface()
1739 diag::note_implementation_declared); in ActOnStartCategoryInterface()
1747 Diag(CategoryLoc, diag::warn_dup_category_def) in ActOnStartCategoryInterface()
1749 Diag(Previous->getLocation(), diag::note_previous_definition); in ActOnStartCategoryInterface()
1763 diag::err_objc_parameterized_category_nonclass) in ActOnStartCategoryInterface()
1820 Diag(ClassLoc, diag::err_undef_interface) << ClassName; in ActOnStartCategoryImplementation()
1823 diag::err_undef_interface)) { in ActOnStartCategoryImplementation()
1837 Diag(ClassLoc, diag::err_dup_implementation_category) << ClassName in ActOnStartCategoryImplementation()
1840 diag::note_previous_definition); in ActOnStartCategoryImplementation()
1867 Diag(ClassLoc, diag::err_redefinition_different_kind) << ClassName; in ActOnStartClassImplementation()
1868 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1873 diag::warn_undef_interface); in ActOnStartClassImplementation()
1885 PDiag(diag::warn_undef_interface_suggest) << ClassName, in ActOnStartClassImplementation()
1888 Diag(ClassLoc, diag::warn_undef_interface) << ClassName; in ActOnStartClassImplementation()
1899 Diag(SuperClassLoc, diag::err_redefinition_different_kind) in ActOnStartClassImplementation()
1901 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1907 Diag(SuperClassLoc, diag::err_undef_superclass) in ActOnStartClassImplementation()
1912 Diag(SuperClassLoc, diag::err_conflicting_super_class) in ActOnStartClassImplementation()
1914 Diag(SDecl->getLocation(), diag::note_previous_definition); in ActOnStartClassImplementation()
1958 Diag(ClassLoc, diag::err_dup_implementation_class) << ClassName; in ActOnStartClassImplementation()
1960 diag::note_previous_definition); in ActOnStartClassImplementation()
2021 Diag(ImpDecl->getLocation(), diag::warn_on_superclass_use); in CheckImplementationIvars()
2026 Diag(ImplIvar->getLocation(), diag::err_duplicate_ivar_declaration); in CheckImplementationIvars()
2027 Diag(ClsIvar->getLocation(), diag::note_previous_definition); in CheckImplementationIvars()
2034 Diag(ImplIvar->getLocation(), diag::err_duplicate_ivar_declaration); in CheckImplementationIvars()
2035 Diag(ClsExtIvar->getLocation(), diag::note_previous_definition); in CheckImplementationIvars()
2060 Diag(ImplIvar->getLocation(), diag::err_conflicting_ivar_type) in CheckImplementationIvars()
2063 Diag(ClsIvar->getLocation(), diag::note_previous_definition); in CheckImplementationIvars()
2068 diag::err_conflicting_ivar_bitwidth) << ImplIvar->getIdentifier(); in CheckImplementationIvars()
2070 diag::note_previous_definition); in CheckImplementationIvars()
2074 Diag(ImplIvar->getLocation(), diag::err_conflicting_ivar_name) in CheckImplementationIvars()
2076 Diag(ClsIvar->getLocation(), diag::note_previous_definition); in CheckImplementationIvars()
2082 Diag(ivars[j]->getLocation(), diag::err_inconsistent_ivar_count); in CheckImplementationIvars()
2084 Diag(IVI->getLocation(), diag::err_inconsistent_ivar_count); in CheckImplementationIvars()
2119 S.Diag(MethodLoc, diag::note_method_declared_at) << method; in WarnUndefinedMethod()
2212 ? diag::warn_conflicting_overriding_ret_type_modifiers in CheckMethodOverrideReturn()
2213 : diag::warn_conflicting_ret_type_modifiers)) in CheckMethodOverrideReturn()
2216 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideReturn()
2232 diag::warn_conflicting_nullability_attr_overriding_ret_types) in CheckMethodOverrideReturn()
2241 S.Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in CheckMethodOverrideReturn()
2251 IsOverridingMode ? diag::warn_conflicting_overriding_ret_types in CheckMethodOverrideReturn()
2252 : diag::warn_conflicting_ret_types; in CheckMethodOverrideReturn()
2268 IsOverridingMode ? diag::warn_non_covariant_overriding_ret_types in CheckMethodOverrideReturn()
2269 : diag::warn_non_covariant_ret_types; in CheckMethodOverrideReturn()
2278 ? diag::note_previous_declaration in CheckMethodOverrideReturn()
2279 : diag::note_previous_definition) in CheckMethodOverrideReturn()
2298 diag::warn_conflicting_overriding_param_modifiers) in CheckMethodOverrideParam()
2302 diag::warn_conflicting_param_modifiers) in CheckMethodOverrideParam()
2305 S.Diag(IfaceVar->getLocation(), diag::note_previous_declaration) in CheckMethodOverrideParam()
2318 diag::warn_conflicting_nullability_attr_overriding_param_types) in CheckMethodOverrideParam()
2327 S.Diag(IfaceVar->getLocation(), diag::note_previous_declaration); in CheckMethodOverrideParam()
2335 IsOverridingMode ? diag::warn_conflicting_overriding_param_types in CheckMethodOverrideParam()
2336 : diag::warn_conflicting_param_types; in CheckMethodOverrideParam()
2352 IsOverridingMode ? diag::warn_non_contravariant_overriding_param_types in CheckMethodOverrideParam()
2353 : diag::warn_non_contravariant_param_types; in CheckMethodOverrideParam()
2361 (IsOverridingMode ? diag::note_previous_declaration in CheckMethodOverrideParam()
2362 : diag::note_previous_definition)) in CheckMethodOverrideParam()
2385 unsigned errorID = diag::err_arc_lost_method_convention; in checkMethodFamilyMismatch()
2386 unsigned noteID = diag::note_arc_lost_method_convention; in checkMethodFamilyMismatch()
2390 errorID = diag::err_arc_gained_method_convention; in checkMethodFamilyMismatch()
2391 noteID = diag::note_arc_gained_method_convention; in checkMethodFamilyMismatch()
2460 diag::warn_conflicting_variadic); in WarnConflictingTypedMethods()
2461 Diag(MethodDecl->getLocation(), diag::note_previous_declaration); in WarnConflictingTypedMethods()
2483 diag::warn_conflicting_overriding_variadic); in CheckConflictingOverridingMethod()
2484 Diag(Overridden->getLocation(), diag::note_previous_declaration); in CheckConflictingOverridingMethod()
2525 diag::warn_category_method_impl_match); in WarnExactTypedMethods()
2526 Diag(MethodDecl->getLocation(), diag::note_method_declared_at) in WarnExactTypedMethods()
2658 unsigned DIAG = diag::warn_unimplemented_protocol_method; in CheckProtocolMethodDefs()
2681 unsigned DIAG = diag::warn_unimplemented_protocol_method; in CheckProtocolMethodDefs()
2714 diag::warn_undef_method_impl); in MatchAllMethodDeclarations()
2740 diag::warn_undef_method_impl); in MatchAllMethodDeclarations()
2940 Diag(AtClassLoc, diag::err_redefinition_different_kind) << IdentList[i]; in ActOnForwardClassDeclaration()
2941 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
2948 Diag(AtClassLoc, diag::warn_forward_class_redefinition) in ActOnForwardClassDeclaration()
2950 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnForwardClassDeclaration()
2990 Diag(IdentLocs[i], diag::err_objc_parameterized_forward_class) in ActOnForwardClassDeclaration()
2993 Diag(Def->getLocation(), diag::note_defined_here) in ActOnForwardClassDeclaration()
3334 !Diags.isIgnored(diag::warn_strict_multiple_method_decl, R.getBegin()); in DiagnoseMultipleMethodInGlobalPool()
3362 Diag(R.getBegin(), diag::err_arc_multiple_method_decl) << Sel << R; in DiagnoseMultipleMethodInGlobalPool()
3364 Diag(R.getBegin(), diag::warn_strict_multiple_method_decl) << Sel << R; in DiagnoseMultipleMethodInGlobalPool()
3366 Diag(R.getBegin(), diag::warn_multiple_method_decl) << Sel << R; in DiagnoseMultipleMethodInGlobalPool()
3369 issueError ? diag::note_possibility : diag::note_using) in DiagnoseMultipleMethodInGlobalPool()
3372 Diag(Methods[I]->getLocStart(), diag::note_also_found) in DiagnoseMultipleMethodInGlobalPool()
3504 Diag(Ivar->getLocation(), diag::err_duplicate_member) << II; in DiagnoseDuplicateIvars()
3505 Diag(prevIvar->getLocation(), diag::note_previous_declaration); in DiagnoseDuplicateIvars()
3521 S.Diag(ivar->getLocation(), diag::err_arc_weak_disabled); in DiagnoseWeakIvars()
3523 S.Diag(ivar->getLocation(), diag::err_arc_weak_no_runtime); in DiagnoseWeakIvars()
3581 Diag(Method->getLocation(), diag::err_duplicate_method_decl) in ActOnAtEnd()
3583 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
3590 Diag(Method->getLocation(), diag::warn_duplicate_method_decl) in ActOnAtEnd()
3592 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
3605 Diag(Method->getLocation(), diag::err_duplicate_method_decl) in ActOnAtEnd()
3607 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
3614 Diag(Method->getLocation(), diag::warn_duplicate_method_decl) in ActOnAtEnd()
3616 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnAtEnd()
3687 Diag(DeclLoc, diag::warn_objc_root_class_missing) in ActOnAtEnd()
3696 Diag(SuperClassLoc, diag::note_objc_needs_superclass) in ActOnAtEnd()
3699 Diag(SuperClassLoc, diag::note_objc_needs_superclass); in ActOnAtEnd()
3704 Diag(IDecl->getLocation(), diag::err_objc_root_class_subclass); in ActOnAtEnd()
3735 Diag(VDecl->getLocation(), diag::err_objc_var_decl_inclass); in ActOnAtEnd()
4034 Diag((*ParamI)->getLocation(), diag::ext_typecheck_base_super) in CheckObjCMethodOverrides()
4036 Diag(overridden->getLocation(), diag::note_previous_declaration); in CheckObjCMethodOverrides()
4069 S.Diag(loc, diag::err_nullability_conflicting) in mergeTypeNullabilityForRedecl()
4144 Diag(MethodLoc, diag::error_missing_method_context); in ActOnMethodDeclaration()
4164 Diag(MethodLoc, diag::warn_missing_method_return_type) in ActOnMethodDeclaration()
4197 (MethodDefinition ? diag::warn_method_param_redefinition in ActOnMethodDeclaration()
4198 : diag::warn_method_param_declaration)) in ActOnMethodDeclaration()
4201 diag::note_previous_declaration); in ActOnMethodDeclaration()
4222 Diag(Param->getLocation(), diag::err_block_on_nonlocal); in ActOnMethodDeclaration()
4272 Diag(ObjCMethod->getLocation(), diag::warn_dealloc_in_category) in ActOnMethodDeclaration()
4283 Diag(ObjCMethod->getLocation(), diag::err_duplicate_method_decl) in ActOnMethodDeclaration()
4285 Diag(PrevMethod->getLocation(), diag::note_previous_declaration); in ActOnMethodDeclaration()
4364 Diag(D->getLocation(), diag::err_objc_decls_may_only_appear_in_global_scope); in CheckObjCDeclScope()
4378 Diag(DeclStart, diag::err_undef_interface) << ClassName; in ActOnDefs()
4382 Diag(DeclStart, diag::err_atdef_nonfragile_interface); in ActOnDefs()
4423 Diag(IdLoc, diag::err_arg_with_address_space); in BuildObjCExceptionDecl()
4435 Diag(IdLoc ,diag::err_catch_param_not_objc_type); in BuildObjCExceptionDecl()
4438 Diag(IdLoc, diag::err_illegal_qualifiers_on_catch_parm); in BuildObjCExceptionDecl()
4460 Diag(DS.getStorageClassSpecLoc(), diag::warn_register_objc_catch_parm) in ActOnObjCExceptionDecl()
4463 Diag(DS.getStorageClassSpecLoc(), diag::err_storage_spec_on_catch_parm) in ActOnObjCExceptionDecl()
4468 diag::err_invalid_thread) in ActOnObjCExceptionDecl()
4490 Diag(D.getIdentifierLoc(), diag::err_qualified_objc_catch_parm) in ActOnObjCExceptionDecl()
4503 Diag(New->getLocation(), diag::err_block_on_nonlocal); in ActOnObjCExceptionDecl()
4538 Diag(Loc, diag::warn_unimplemented_selector) << Sel; in DiagnoseUseOfUnimplementedSelectors()
4610 unsigned DIAG = diag::warn_unused_property_backing_ivar; in DiagnoseUnusedBackingIvarInAccessor()
4631 Diag(PDecl->getLocation(), diag::note_property_declare); in DiagnoseUnusedBackingIvarInAccessor()