Lines Matching refs:diag
192 diag::err_attribute_wrong_number_arguments, in checkAttributeNumArgs()
201 diag::err_attribute_too_few_arguments, in checkAttributeAtLeastNumArgs()
210 diag::err_attribute_too_many_arguments, in checkAttributeAtMostNumArgs()
223 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) in checkUInt32Argument()
227 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type) in checkUInt32Argument()
234 S.Diag(Expr->getExprLoc(), diag::err_ice_too_large) in checkUInt32Argument()
249 S.Diag(Attr.getLoc(), diag::err_attributes_are_not_compatible) in checkAttrMutualExclusion()
278 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) in checkFunctionOrMethodParameterIndex()
286 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds) in checkFunctionOrMethodParameterIndex()
294 diag::err_attribute_invalid_implicit_this_argument) in checkFunctionOrMethodParameterIndex()
314 Diag(Loc->Loc, diag::err_attribute_argument_type) in checkStringLiteralArgumentAttr()
331 Diag(ArgExpr->getLocStart(), diag::err_attribute_argument_type) in checkStringLiteralArgumentAttr()
393 S.Diag(Attr.getLoc(), diag::warn_thread_attribute_decl_not_pointer) in threadSafetyCheckIsPointer()
522 S.Diag(Attr.getLoc(), diag::warn_thread_attribute_ignored) << in checkAttrArgsAreCapabilityObjs()
551 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_range) in checkAttrArgsAreCapabilityObjs()
564 S.Diag(Attr.getLoc(), diag::warn_thread_attribute_argument_not_lockable) in checkAttrArgsAreCapabilityObjs()
634 S.Diag(Attr.getLoc(), diag::warn_thread_attribute_decl_not_lockable) in checkAcquireOrderAttrCommon()
719 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) in checkTryLockFunAttrCommon()
803 S.Diag(Attr.getLoc(), diag::err_enable_if_never_constant_expr); in handleEnableIfAttr()
821 S.Diag(IL->Loc, diag::warn_attribute_type_not_supported) in handleConsumableAttr()
826 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type) in handleConsumableAttr()
844 S.Diag(Attr.getLoc(), diag::warn_attr_on_unconsumable_class) << in checkForConsumableClass()
880 S.Diag(Loc, diag::warn_attribute_type_not_supported) in handleCallableWhenAttr()
904 S.Diag(Ident->Loc, diag::warn_attribute_type_not_supported) in handleParamTypestateAttr()
909 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type) << in handleParamTypestateAttr()
940 S.Diag(IL->Loc, diag::warn_attribute_type_not_supported) in handleReturnTypestateAttr()
945 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type) << in handleReturnTypestateAttr()
990 S.Diag(Ident->Loc, diag::warn_attribute_type_not_supported) in handleSetTypestateAttr()
995 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type) << in handleSetTypestateAttr()
1015 S.Diag(Ident->Loc, diag::warn_attribute_type_not_supported) in handleTestTypestateAttr()
1020 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type) << in handleTestTypestateAttr()
1046 S.Diag(Attr.getLoc(), diag::warn_attribute_ignored_for_field_of_type) in handlePackedAttr()
1053 S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); in handlePackedAttr()
1062 S.Diag(Attr.getLoc(), diag::warn_iboutlet_object_type) in checkIBOutletCommon()
1069 S.Diag(Attr.getLoc(), diag::warn_iboutlet_object_type) in checkIBOutletCommon()
1075 S.Diag(Attr.getLoc(), diag::warn_attribute_iboutlet) << Attr.getName(); in checkIBOutletCommon()
1096 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) in handleIBOutletCollection()
1112 S.Diag(Attr.getLoc(), diag::err_iboutletcollection_type) << "NSObject"; in handleIBOutletCollection()
1128 QT->isBuiltinType() ? diag::err_iboutletcollection_builtintype in handleIBOutletCollection()
1129 : diag::err_iboutletcollection_type) << QT; in handleIBOutletCollection()
1168 ? diag::warn_attribute_return_pointers_only in attrNonNullArgCheck()
1169 : diag::warn_attribute_pointers_only) in attrNonNullArgCheck()
1209 S.Diag(Attr.getLoc(), diag::warn_attribute_nonnull_no_pointers); in handleNonNullAttr()
1226 S.Diag(Attr.getLoc(), diag::warn_attribute_nonnull_parm_no_args) in handleNonNullAttrParameter()
1272 Diag(AttrLoc, diag::warn_attribute_return_pointers_refs_only) in AddAssumeAlignedAttr()
1281 Diag(AttrLoc, diag::err_attribute_argument_n_type) in AddAssumeAlignedAttr()
1285 Diag(AttrLoc, diag::err_attribute_argument_type) in AddAssumeAlignedAttr()
1292 Diag(AttrLoc, diag::err_alignment_not_power_of_two) in AddAssumeAlignedAttr()
1302 Diag(AttrLoc, diag::err_attribute_argument_n_type) in AddAssumeAlignedAttr()
1324 S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type) in handleOwnershipAttr()
1339 S.Diag(AL.getLoc(), diag::err_attribute_too_few_arguments) in handleOwnershipAttr()
1346 S.Diag(AL.getLoc(), diag::err_attribute_too_many_arguments) in handleOwnershipAttr()
1385 S.Diag(AL.getLoc(), diag::err_ownership_type) << AL.getName() << Err in handleOwnershipAttr()
1396 S.Diag(AL.getLoc(), diag::err_attributes_are_not_compatible) in handleOwnershipAttr()
1405 S.Diag(I->getLocation(), diag::err_ownership_returns_index_mismatch) in handleOwnershipAttr()
1408 S.Diag(AL.getLoc(), diag::note_ownership_returns_index_mismatch) in handleOwnershipAttr()
1429 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) in handleWeakRefAttr()
1448 S.Diag(Attr.getLoc(), diag::err_attribute_weakref_not_global_context) in handleWeakRefAttr()
1496 S.Diag(Attr.getLoc(), diag::err_alias_not_supported_on_darwin); in handleAliasAttr()
1503 S.Diag(Attr.getLoc(), diag::err_alias_is_definition) << FD; in handleAliasAttr()
1509 S.Diag(Attr.getLoc(), diag::err_alias_is_definition) << VD; in handleAliasAttr()
1547 S.Diag(LiteralLoc, diag::err_attr_tlsmodel_arg); in handleTLSModelAttr()
1562 S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << "kernel"; in handleKernelAttr()
1574 S.Diag(Attr.getLoc(), diag::warn_attribute_return_pointers_only) in handleRestrictAttr()
1580 S.Diag(Attr.getLoc(), diag::err_attribute_not_supported_in_lang) in handleCommonAttr()
1595 S.Diag(attr.getLoc(), diag::warn_attribute_wrong_decl_type) in handleNoReturnAttr()
1624 Attr.isCXX11Attribute() ? diag::err_attribute_wrong_decl_type in handleAnalyzerNoReturnAttr()
1625 : diag::warn_attribute_wrong_decl_type) in handleAnalyzerNoReturnAttr()
1662 S.Diag(Attr.getLoc(), diag::err_repeat_attribute) << A; in handleVecReturnAttr()
1670 S.Diag(Attr.getLoc(), diag::err_attribute_vecreturn_only_vector_member); in handleVecReturnAttr()
1675 S.Diag(Attr.getLoc(), diag::err_attribute_vecreturn_only_pod_record); in handleVecReturnAttr()
1681 S.Diag(Attr.getLoc(), diag::err_attribute_vecreturn_only_vector_member); in handleVecReturnAttr()
1699 diag::err_carries_dependency_param_not_function_decl); in handleDependencyAttr()
1712 S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); in handleUsedAttr()
1716 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) in handleUsedAttr()
1763 S.Diag(Attr.getLoc(), diag::err_objc_attr_protocol_requires_definition) in handleObjCSuppresProtocolAttr()
1787 S.Diag(Range.getBegin(), diag::warn_availability_version_ordering) in checkAvailabilityAttr()
1795 S.Diag(Range.getBegin(), diag::warn_availability_version_ordering) in checkAvailabilityAttr()
1803 S.Diag(Range.getBegin(), diag::warn_availability_version_ordering) in checkAvailabilityAttr()
1890 diag::warn_mismatched_availability_override_unavail) in mergeAvailabilityAttr()
1894 diag::warn_mismatched_availability_override) in mergeAvailabilityAttr()
1899 Diag(Range.getBegin(), diag::note_overridden_method); in mergeAvailabilityAttr()
1901 Diag(OldAA->getLocation(), diag::warn_mismatched_availability); in mergeAvailabilityAttr()
1902 Diag(Range.getBegin(), diag::note_previous_attribute); in mergeAvailabilityAttr()
1964 S.Diag(Platform->Loc, diag::warn_availability_unknown_platform) in handleAvailabilityAttr()
1969 S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); in handleAvailabilityAttr()
2002 S.Diag(existingAttr->getLocation(), diag::err_mismatched_visibility); in mergeVisibilityAttr()
2003 S.Diag(range.getBegin(), diag::note_previous_attribute); in mergeVisibilityAttr()
2027 S.Diag(Attr.getRange().getBegin(), diag::warn_attribute_ignored) in handleVisibilityAttr()
2037 S.Diag(Attr.getRange().getBegin(), diag::err_attribute_wrong_decl_type) in handleVisibilityAttr()
2050 S.Diag(LiteralLoc, diag::warn_attribute_type_not_supported) in handleVisibilityAttr()
2059 S.Diag(Attr.getLoc(), diag::warn_attribute_protected_visibility); in handleVisibilityAttr()
2080 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) in handleObjCMethodFamilyAttr()
2088 S.Diag(IL->Loc, diag::warn_attribute_type_not_supported) << Attr.getName() in handleObjCMethodFamilyAttr()
2095 S.Diag(method->getLocation(), diag::err_init_method_bad_return_type) in handleObjCMethodFamilyAttr()
2110 S.Diag(TD->getLocation(), diag::err_nsobject_attribute); in handleObjCNSObject()
2117 S.Diag(PD->getLocation(), diag::err_nsobject_attribute); in handleObjCNSObject()
2128 S.Diag(D->getLocation(), diag::warn_nsobject_attribute); in handleObjCNSObject()
2139 S.Diag(TD->getLocation(), diag::warn_ptr_independentclass_attribute); in handleObjCIndependentClass()
2143 S.Diag(D->getLocation(), diag::warn_independentclass_attribute); in handleObjCIndependentClass()
2153 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) in handleBlocksAttr()
2161 S.Diag(Attr.getLoc(), diag::warn_attribute_type_not_supported) in handleBlocksAttr()
2178 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) in handleSentinelAttr()
2185 S.Diag(Attr.getLoc(), diag::err_attribute_sentinel_less_than_zero) in handleSentinelAttr()
2199 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) in handleSentinelAttr()
2209 S.Diag(Attr.getLoc(), diag::err_attribute_sentinel_not_zero_or_one) in handleSentinelAttr()
2218 S.Diag(Attr.getLoc(), diag::warn_attribute_sentinel_named_arguments); in handleSentinelAttr()
2223 S.Diag(Attr.getLoc(), diag::warn_attribute_sentinel_not_variadic) << 0; in handleSentinelAttr()
2228 S.Diag(Attr.getLoc(), diag::warn_attribute_sentinel_not_variadic) << 0; in handleSentinelAttr()
2233 S.Diag(Attr.getLoc(), diag::warn_attribute_sentinel_not_variadic) << 1; in handleSentinelAttr()
2244 S.Diag(Attr.getLoc(), diag::warn_attribute_sentinel_not_variadic) << m; in handleSentinelAttr()
2248 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) in handleSentinelAttr()
2253 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) in handleSentinelAttr()
2265 S.Diag(Attr.getLoc(), diag::warn_attribute_void_function_method) in handleWarnUnusedResult()
2271 S.Diag(Attr.getLoc(), diag::warn_attribute_void_function_method) in handleWarnUnusedResult()
2286 S.Diag(Attr.getLoc(), diag::warn_attribute_invalid_on_definition) in handleWeakImportAttr()
2293 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) in handleWeakImportAttr()
2314 S.Diag(Attr.getLoc(), diag::err_attribute_argument_is_zero) in handleWorkGroupSize()
2324 S.Diag(Attr.getLoc(), diag::warn_duplicate_attribute) << Attr.getName(); in handleWorkGroupSize()
2333 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) in handleVecTypeHint()
2345 S.Diag(Attr.getLoc(), diag::err_attribute_argument_vec_type_hint) in handleVecTypeHint()
2352 S.Diag(Attr.getLoc(), diag::warn_duplicate_attribute) << Attr.getName(); in handleVecTypeHint()
2368 Diag(ExistingAttr->getLocation(), diag::warn_mismatched_section); in mergeSectionAttr()
2369 Diag(Range.getBegin(), diag::note_previous_attribute); in mergeSectionAttr()
2379 Diag(LiteralLoc, diag::err_attribute_section_invalid_for_target) << Error; in checkSectionName()
2399 S.Diag(LiteralLoc, diag::err_attribute_section_invalid_for_target) in handleSectionAttr()
2414 S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); in handleCleanupAttr()
2427 S.Diag(Loc, diag::warn_cleanup_ext); in handleCleanupAttr()
2431 S.Diag(Loc, diag::err_attribute_cleanup_arg_not_function) << 1 in handleCleanupAttr()
2437 S.Diag(Loc, diag::warn_cleanup_ext); in handleCleanupAttr()
2441 S.Diag(Loc, diag::err_attribute_cleanup_arg_not_function) << 2 in handleCleanupAttr()
2448 S.Diag(Loc, diag::err_attribute_cleanup_arg_not_function) << 0; in handleCleanupAttr()
2453 S.Diag(Loc, diag::err_attribute_cleanup_func_must_take_one_arg) in handleCleanupAttr()
2464 S.Diag(Loc, diag::err_attribute_cleanup_func_arg_incompatible_type) in handleCleanupAttr()
2490 S.Diag(Attr.getLoc(), diag::err_format_attribute_not) in handleFormatArgAttr()
2500 S.Diag(Attr.getLoc(), diag::err_format_attribute_result_not) in handleFormatArgAttr()
2551 S.Diag(Attr.getLoc(), diag::warn_attribute_ignored) << Attr.getName(); in handleInitPriorityAttr()
2556 S.Diag(Attr.getLoc(), diag::err_init_priority_object_attr); in handleInitPriorityAttr()
2564 S.Diag(Attr.getLoc(), diag::err_init_priority_object_attr); in handleInitPriorityAttr()
2577 S.Diag(Attr.getLoc(), diag::err_attribute_argument_outof_range) in handleInitPriorityAttr()
2612 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) in handleFormatAttr()
2639 S.Diag(Attr.getLoc(), diag::warn_attribute_type_not_supported) in handleFormatAttr()
2651 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds) in handleFormatAttr()
2662 diag::err_format_attribute_implicit_this_format_string) in handleFormatAttr()
2674 S.Diag(Attr.getLoc(), diag::err_format_attribute_not) in handleFormatAttr()
2683 S.Diag(Attr.getLoc(), diag::err_format_attribute_not) in handleFormatAttr()
2690 S.Diag(Attr.getLoc(), diag::err_format_attribute_not) in handleFormatAttr()
2707 S.Diag(D->getLocation(), diag::err_format_attribute_requires_variadic); in handleFormatAttr()
2716 S.Diag(Attr.getLoc(), diag::err_format_strftime_third_parameter) in handleFormatAttr()
2722 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds) in handleFormatAttr()
2745 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) in handleTransparentUnionAttr()
2752 diag::warn_transparent_union_attribute_not_definition); in handleTransparentUnionAttr()
2759 S.Diag(Attr.getLoc(), diag::warn_transparent_union_attribute_zero_fields); in handleTransparentUnionAttr()
2767 diag::warn_transparent_union_attribute_floating) in handleTransparentUnionAttr()
2788 diag::warn_transparent_union_attribute_field_size_align) in handleTransparentUnionAttr()
2792 diag::note_transparent_union_first_field_size_align) in handleTransparentUnionAttr()
2842 Diag(AttrLoc, diag::warn_attribute_pointer_or_reference_only) in AddAlignValueAttr()
2851 diag::err_align_value_attribute_argument_not_int, in AddAlignValueAttr()
2857 Diag(AttrLoc, diag::err_alignment_not_power_of_two) in AddAlignValueAttr()
2876 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_number_arguments) in handleAlignedAttr()
2890 diag::err_pack_expansion_without_parameter_packs); in handleAlignedAttr()
2900 S.Diag(Attr.getLoc(), diag::err_alignment_dependent_typedef_name) in handleAlignedAttr()
2941 Diag(AttrLoc, diag::err_attribute_wrong_decl_type) << &TmpAttr in AddAlignedAttr()
2947 Diag(AttrLoc, diag::err_alignas_attribute_wrong_decl_type) in AddAlignedAttr()
2965 diag::err_aligned_attribute_argument_not_int, in AddAlignedAttr()
2977 Diag(AttrLoc, diag::err_alignment_not_power_of_two) in AddAlignedAttr()
2985 Diag(AttrLoc, diag::err_attribute_aligned_too_great) << MaxValidAlignment in AddAlignedAttr()
3038 Diag(AlignasAttr->getLocation(), diag::err_alignas_underaligned) in CheckAlignasUnderalignment()
3065 Diag(Range.getBegin(), diag::err_mismatched_ms_inheritance) in checkMSInheritanceAttrOnDefinition()
3067 Diag(RD->getDefinition()->getLocation(), diag::note_defined_here) in checkMSInheritanceAttrOnDefinition()
3082 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type) << Attr.getName() in handleModeAttr()
3140 S.Diag(D->getLocation(), diag::err_attr_wrong_decl) in handleModeAttr()
3146 S.Diag(Attr.getLoc(), diag::err_mode_not_primitive); in handleModeAttr()
3149 S.Diag(Attr.getLoc(), diag::err_mode_wrong_type); in handleModeAttr()
3152 S.Diag(Attr.getLoc(), diag::err_mode_wrong_type); in handleModeAttr()
3155 S.Diag(Attr.getLoc(), diag::err_mode_wrong_type); in handleModeAttr()
3163 S.Diag(Attr.getLoc(), diag::err_machine_mode) << 0 /*Unknown*/ << Name; in handleModeAttr()
3176 S.Diag(Attr.getLoc(), diag::err_machine_mode) << 1 /*Unsupported*/ << Name; in handleModeAttr()
3199 diag::warn_attribute_requires_functions_or_static_globals) in handleNoDebugAttr()
3203 diag::warn_attribute_requires_functions_or_static_globals) in handleNoDebugAttr()
3217 Diag(Range.getBegin(), diag::warn_attribute_ignored) << Ident; in mergeAlwaysInlineAttr()
3218 Diag(Optnone->getLocation(), diag::note_conflicting_attribute); in mergeAlwaysInlineAttr()
3232 Diag(Range.getBegin(), diag::warn_attribute_ignored) << "'minsize'"; in mergeMinSizeAttr()
3233 Diag(Optnone->getLocation(), diag::note_conflicting_attribute); in mergeMinSizeAttr()
3246 Diag(Inline->getLocation(), diag::warn_attribute_ignored) << Inline; in mergeOptimizeNoneAttr()
3247 Diag(Range.getBegin(), diag::note_conflicting_attribute); in mergeOptimizeNoneAttr()
3251 Diag(MinSize->getLocation(), diag::warn_attribute_ignored) << MinSize; in mergeOptimizeNoneAttr()
3252 Diag(Range.getBegin(), diag::note_conflicting_attribute); in mergeOptimizeNoneAttr()
3288 S.Diag(FD->getTypeSpecStartLoc(), diag::err_kern_type_not_void_return) in handleGlobalAttr()
3303 S.Diag(Attr.getLoc(), diag::warn_gnu_inline_attribute_requires_inline); in handleGNUInlineAttr()
3323 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) in handleCallConvAttr()
3440 Diag(attr.getLoc(), diag::err_invalid_pcs); in CheckCallingConvAttr()
3451 Diag(attr.getLoc(), diag::warn_cconv_ignored) << attr.getName(); in CheckCallingConvAttr()
3484 Diag(Attr.getLoc(), diag::err_attribute_regparm_wrong_platform) in CheckRegparmAttr()
3492 Diag(Attr.getLoc(), diag::err_attribute_regparm_invalid_number) in CheckRegparmAttr()
3520 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) in handleArgumentWithTypeTagAttr()
3531 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type) in handleArgumentWithTypeTagAttr()
3551 S.Diag(Attr.getLoc(), diag::err_attribute_pointers_only) in handleArgumentWithTypeTagAttr()
3565 S.Diag(Attr.getLoc(), diag::err_attribute_argument_n_type) in handleTypeTagForDatatypeAttr()
3574 S.Diag(Attr.getLoc(), diag::err_attribute_wrong_decl_type) in handleTypeTagForDatatypeAttr()
3625 S.Diag(D->getLocStart(), diag::warn_ns_attribute_wrong_parameter_type) in handleNSConsumedAttr()
3655 S.Diag(D->getLocStart(), diag::warn_attribute_wrong_decl_type) in handleNSReturnsRetainedAttr()
3684 S.Diag(D->getLocStart(), diag::warn_ns_attribute_wrong_return_type) in handleNSReturnsRetainedAttr()
3729 S.Diag(D->getLocStart(), diag::warn_ns_attribute_wrong_return_type) in handleObjCReturnsInnerPointerAttr()
3749 S.Diag(D->getLocStart(), diag::warn_objc_requires_super_protocol) in handleObjCRequiresSuperAttr()
3751 S.Diag(PDecl->getLocation(), diag::note_protocol_decl); in handleObjCRequiresSuperAttr()
3755 S.Diag(D->getLocStart(), diag::warn_objc_requires_super_protocol) in handleObjCRequiresSuperAttr()
3790 S.Diag(D->getLocStart(), diag::err_objc_attr_not_id) << Attr.getName() << 0; in handleObjCBridgeAttr()
3797 S.Diag(Attr.getLoc(), diag::err_objc_attr_typedef_not_id) in handleObjCBridgeAttr()
3805 S.Diag(Attr.getLoc(), diag::err_objc_attr_typedef_not_void_pointer); in handleObjCBridgeAttr()
3820 S.Diag(D->getLocStart(), diag::err_objc_attr_not_id) << Attr.getName() << 0; in handleObjCBridgeMutableAttr()
3834 S.Diag(D->getLocStart(), diag::err_objc_attr_not_id) << Attr.getName() << 0; in handleObjCBridgeRelatedAttr()
3880 S.Diag(D->getLocStart(), diag::err_attribute_wrong_decl_type) in handleObjCOwnershipAttr()
3891 S.Diag(Attr.getLoc(), diag::err_objc_precise_lifetime_bad_type) in handleObjCPreciseLifetimeAttr()
3915 S.Diag(Attr.getLoc(), diag::warn_objc_precise_lifetime_meaningless) in handleObjCPreciseLifetimeAttr()
3931 S.Diag(Attr.getLoc(), diag::err_attribute_not_supported_in_lang) in handleUuidAttr()
3937 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) in handleUuidAttr()
3954 S.Diag(LiteralLoc, diag::err_attribute_uuid_malformed_guid); in handleUuidAttr()
3961 S.Diag(LiteralLoc, diag::err_attribute_uuid_malformed_guid); in handleUuidAttr()
3965 S.Diag(LiteralLoc, diag::err_attribute_uuid_malformed_guid); in handleUuidAttr()
3976 S.Diag(Attr.getLoc(), diag::err_attribute_not_supported_in_lang) in handleMSInheritanceAttr()
3992 S.Diag(Attr.getLoc(), diag::err_thread_unsupported); in handleDeclspecThreadAttr()
3996 S.Diag(Attr.getLoc(), diag::err_declspec_thread_on_thread_variable); in handleDeclspecThreadAttr()
4000 S.Diag(Attr.getLoc(), diag::err_thread_non_global) << "__declspec(thread)"; in handleDeclspecThreadAttr()
4011 S.Diag(Attr.getLoc(), diag::err_attribute_too_many_arguments) in handleARMInterruptAttr()
4026 S.Diag(Attr.getLoc(), diag::warn_attribute_type_not_supported) in handleARMInterruptAttr()
4042 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type) << Attr.getName() in handleMSP430InterruptAttr()
4052 S.Diag(Attr.getLoc(), diag::err_attribute_argument_type) in handleMSP430InterruptAttr()
4060 S.Diag(Attr.getLoc(), diag::err_attribute_argument_out_of_bounds) in handleMSP430InterruptAttr()
4121 S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) in handleX86ForceAlignArgPointerAttr()
4134 Diag(Range.getBegin(), diag::warn_attribute_ignored) << "'dllimport'"; in mergeDLLImportAttr()
4147 Diag(Import->getLocation(), diag::warn_attribute_ignored) << Import; in mergeDLLExportAttr()
4160 S.Diag(A.getRange().getBegin(), diag::warn_attribute_ignored) in handleDLLAttr()
4169 S.Diag(A.getRange().getBegin(), diag::warn_attribute_ignored_on_inline) in handleDLLAttr()
4190 Diag(IA->getLocation(), diag::err_mismatched_ms_inheritance) in mergeMSInheritanceAttr()
4192 Diag(Range.getBegin(), diag::note_previous_ms_inheritance); in mergeMSInheritanceAttr()
4204 Diag(Range.getBegin(), diag::warn_ignored_ms_inheritance) in mergeMSInheritanceAttr()
4209 Diag(Range.getBegin(), diag::warn_ignored_ms_inheritance) in mergeMSInheritanceAttr()
4237 S.Diag(LiteralLoc, diag::warn_invalid_capability_name) << N; in handleCapabilityAttr()
4308 S.Diag(Attr.getLoc(), diag::warn_deprecated_anonymous_namespace); in handleDeprecatedAttr()
4319 S.Diag(Attr.getLoc(), diag::ext_deprecated_attr_is_a_cxx14_extension); in handleDeprecatedAttr()
4389 ? diag::warn_unhandled_ms_attribute_ignored in ProcessDeclAttribute()
4390 : diag::warn_unknown_attribute_ignored) in ProcessDeclAttribute()
4903 Diag(AttrList->getLoc(), diag::err_attribute_weakref_without_alias) in ProcessDeclAttributeList()
4918 Diag(D->getLocation(), diag::err_opencl_kernel_attr) << A; in ProcessDeclAttributeList()
4921 Diag(D->getLocation(), diag::err_opencl_kernel_attr) << A; in ProcessDeclAttributeList()
4924 Diag(D->getLocation(), diag::err_opencl_kernel_attr) << A; in ProcessDeclAttributeList()
4927 Diag(D->getLocation(), diag::err_attribute_wrong_decl_type) in ProcessDeclAttributeList()
4931 Diag(D->getLocation(), diag::err_attribute_wrong_decl_type) in ProcessDeclAttributeList()
4946 Diag(l->getLoc(), diag::err_only_annotate_after_access_spec); in ProcessAccessDeclAttributeList()
4963 S.Diag(A->getLoc(), diag::warn_unknown_attribute_ignored) in checkUnusedDeclAttributes()
4966 S.Diag(A->getLoc(), diag::warn_attribute_not_on_decl) in checkUnusedDeclAttributes()
5116 static void handleDelayedForbiddenType(Sema &S, DelayedDiagnostic &diag, in handleDelayedForbiddenType() argument
5121 diag.Loc)); in handleDelayedForbiddenType()
5129 diag.getForbiddenTypeDiagnostic() == in handleDelayedForbiddenType()
5130 diag::err_arc_array_param_no_ownership) { in handleDelayedForbiddenType()
5131 diag.Triggered = true; in handleDelayedForbiddenType()
5136 S.Diag(diag.Loc, diag.getForbiddenTypeDiagnostic()) in handleDelayedForbiddenType()
5137 << diag.getForbiddenTypeOperand() << diag.getForbiddenTypeArgument(); in handleDelayedForbiddenType()
5138 diag.Triggered = true; in handleDelayedForbiddenType()
5173 unsigned diag, diag_message, diag_fwdclass_message; in DoEmitAvailabilityWarning() local
5186 diag = !ObjCPropertyAccess ? diag::warn_deprecated in DoEmitAvailabilityWarning()
5187 : diag::warn_property_method_deprecated; in DoEmitAvailabilityWarning()
5188 diag_message = diag::warn_deprecated_message; in DoEmitAvailabilityWarning()
5189 diag_fwdclass_message = diag::warn_deprecated_fwdclass_message; in DoEmitAvailabilityWarning()
5197 diag = !ObjCPropertyAccess ? diag::err_unavailable in DoEmitAvailabilityWarning()
5198 : diag::err_property_method_unavailable; in DoEmitAvailabilityWarning()
5199 diag_message = diag::err_unavailable_message; in DoEmitAvailabilityWarning()
5200 diag_fwdclass_message = diag::warn_unavailable_fwdclass_message; in DoEmitAvailabilityWarning()
5206 diag = diag::warn_partial_availability; in DoEmitAvailabilityWarning()
5207 diag_message = diag::warn_partial_message; in DoEmitAvailabilityWarning()
5208 diag_fwdclass_message = diag::warn_partial_fwdclass_message; in DoEmitAvailabilityWarning()
5217 S.Diag(ObjCProperty->getLocation(), diag::note_property_attribute) in DoEmitAvailabilityWarning()
5220 S.Diag(Loc, diag) << D; in DoEmitAvailabilityWarning()
5222 S.Diag(ObjCProperty->getLocation(), diag::note_property_attribute) in DoEmitAvailabilityWarning()
5226 S.Diag(UnknownObjCClass->getLocation(), diag::note_forward_class); in DoEmitAvailabilityWarning()
5229 S.Diag(D->getLocation(), diag::note_availability_specified_here) in DoEmitAvailabilityWarning()
5232 S.Diag(Loc, diag::note_partial_availability_silence) << D; in DoEmitAvailabilityWarning()
5270 DelayedDiagnostic &diag = const_cast<DelayedDiagnostic&>(*i); in PopParsingDeclaration() local
5271 if (diag.Triggered) in PopParsingDeclaration()
5274 switch (diag.Kind) { in PopParsingDeclaration()
5280 handleDelayedAvailabilityCheck(*this, diag, decl); in PopParsingDeclaration()
5284 HandleDelayedAccessCheck(diag, decl); in PopParsingDeclaration()
5288 handleDelayedForbiddenType(*this, diag, decl); in PopParsingDeclaration()