Lines Matching refs:getLocation

389             (*Res)->getLocation().getRawEncoding() <  in getTypeName()
390 IIDecl->getLocation().getRawEncoding()) in getTypeName()
424 MarkAnyDeclReferenced(TD->getLocation(), TD, /*OdrUse=*/false); in getTypeName()
618 Diag(TplDecl->getLocation(), diag::note_template_decl_here) in DiagnoseUnknownTypeName()
704 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type) in isTagTypeWithMissingTag()
740 BuildCXXNestedNameSpecifier(S, *Name, NameLoc, NextToken.getLocation(), in ClassifyName()
975 MarkAnyDeclReferenced(Type->getLocation(), Type, /*OdrUse=*/false); in ClassifyName()
1383 if (FD->isInlined() && !isMainFileLoc(*this, FD->getLocation())) in ShouldWarnIfUnusedFileScopedDecl()
1394 if (!isMainFileLoc(*this, VD->getLocation())) in ShouldWarnIfUnusedFileScopedDecl()
1557 Diag(D->getLocation(), DiagID) << D->getDeclName() << Hint; in DiagnoseUnusedDecl()
1571 S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName(); in CheckPoppedLabel()
1869 Diag(New->getLocation(), diag::err_redefinition_variably_modified_typedef) in isIncompatibleTypedef()
1871 if (Old->getLocation().isValid()) in isIncompatibleTypedef()
1872 Diag(Old->getLocation(), diag::note_previous_definition); in isIncompatibleTypedef()
1882 Diag(New->getLocation(), diag::err_redefinition_different_typedef) in isIncompatibleTypedef()
1884 if (Old->getLocation().isValid()) in isIncompatibleTypedef()
1885 Diag(Old->getLocation(), diag::note_previous_definition); in isIncompatibleTypedef()
1946 Diag(New->getLocation(), diag::err_redefinition_different_kind) in MergeTypedefNameDecl()
1950 if (OldD->getLocation().isValid()) in MergeTypedefNameDecl()
1951 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()
1978 Listener->RedefinedHiddenDefinition(Hidden, NewTag->getLocation()); in MergeTypedefNameDecl()
2030 Diag(New->getLocation(), diag::err_redefinition) in MergeTypedefNameDecl()
2032 Diag(Old->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()
2045 (Context.getSourceManager().isInSystemHeader(Old->getLocation()) || in MergeTypedefNameDecl()
2046 Context.getSourceManager().isInSystemHeader(New->getLocation()))) in MergeTypedefNameDecl()
2049 Diag(New->getLocation(), diag::ext_redefinition_of_typedef) in MergeTypedefNameDecl()
2051 Diag(Old->getLocation(), diag::note_previous_definition); in MergeTypedefNameDecl()
2150 S.Diag(NewAlignasAttr->getLocation(), diag::err_alignas_mismatch) in mergeAlignedAttrs()
2153 S.Diag(OldAlignasAttr->getLocation(), diag::note_previous_declaration); in mergeAlignedAttrs()
2166 S.Diag(New->getLocation(), diag::err_alignas_missing_on_definition) in mergeAlignedAttrs()
2168 S.Diag(OldAlignasAttr->getLocation(), diag::note_alignas_on_declaration) in mergeAlignedAttrs()
2300 S.Diag(VD->getLocation(), Diag) << VD->getDeclName(); in checkNewAttributesAfterDef()
2301 S.Diag(Def->getLocation(), diag::note_previous_definition); in checkNewAttributesAfterDef()
2335 S.Diag(Def->getLocation(), diag::err_alignas_missing_on_definition) in checkNewAttributesAfterDef()
2337 S.Diag(NewAttribute->getLocation(), diag::note_alignas_on_declaration) in checkNewAttributesAfterDef()
2345 S.Diag(NewAttribute->getLocation(), in checkNewAttributesAfterDef()
2347 S.Diag(Def->getLocation(), diag::note_previous_definition); in checkNewAttributesAfterDef()
2421 S.Diag(CDA->getLocation(), in mergeParamDeclAttributes()
2429 S.Diag(FirstVD->getLocation(), in mergeParamDeclAttributes()
2495 SourceLocation OldLocation = Old->getLocation(); in getNoteDiagForInvalidRedeclaration()
2501 OldLocation = New->getLocation(); in getNoteDiagForInvalidRedeclaration()
2557 Diag(New->getLocation(), diag::err_using_decl_friend); in MergeFunctionDecl()
2558 Diag(Shadow->getTargetDecl()->getLocation(), in MergeFunctionDecl()
2560 Diag(Shadow->getUsingDecl()->getLocation(), in MergeFunctionDecl()
2580 Diag(New->getLocation(), diag::err_using_decl_conflict_reverse); in MergeFunctionDecl()
2581 Diag(Shadow->getTargetDecl()->getLocation(), in MergeFunctionDecl()
2583 Diag(Shadow->getUsingDecl()->getLocation(), diag::note_using_decl) << 0; in MergeFunctionDecl()
2588 Diag(New->getLocation(), diag::err_redefinition_different_kind) in MergeFunctionDecl()
2590 Diag(OldD->getLocation(), diag::note_previous_definition); in MergeFunctionDecl()
2614 Diag(New->getLocation(), diag::ext_static_non_static) << New; in MergeFunctionDecl()
2617 Diag(New->getLocation(), diag::err_static_non_static) << New; in MergeFunctionDecl()
2659 Diag(New->getLocation(), diag::err_cconv_change) in MergeFunctionDecl()
2666 Diag(First->getLocation(), diag::note_previous_declaration); in MergeFunctionDecl()
2681 Diag(New->getLocation(), diag::err_regparm_mismatch) in MergeFunctionDecl()
2695 Diag(New->getLocation(), diag::err_returns_retained_mismatch); in MergeFunctionDecl()
2757 Diag(New->getLocation(), diag::err_member_def_does_not_match_ret_type) in MergeFunctionDecl()
2760 Diag(New->getLocation(), diag::err_ovl_diff_return_type) in MergeFunctionDecl()
2808 Diag(New->getLocation(), diag::err_ovl_static_nonstatic_member); in MergeFunctionDecl()
2828 Diag(New->getLocation(), NewDiag); in MergeFunctionDecl()
2830 Diag(New->getLocation(), diag::err_member_redeclared_in_instantiation) in MergeFunctionDecl()
2845 Diag(NewMethod->getLocation(), in MergeFunctionDecl()
2851 Diag(NewMethod->getLocation(), in MergeFunctionDecl()
2864 Diag(NRA->getLocation(), diag::err_noreturn_missing_on_first_decl); in MergeFunctionDecl()
2865 Diag(Old->getFirstDecl()->getLocation(), in MergeFunctionDecl()
2875 Diag(CDA->getLocation(), in MergeFunctionDecl()
2877 Diag(Old->getFirstDecl()->getLocation(), in MergeFunctionDecl()
2906 Diag(New->getLocation(), diag::ext_retained_language_linkage) << New; in MergeFunctionDecl()
2909 Diag(New->getLocation(), diag::err_different_language_linkage) << New; in MergeFunctionDecl()
3012 Diag(Warnings[Warn].NewParm->getLocation(), in MergeFunctionDecl()
3016 if (Warnings[Warn].OldParm->getLocation().isValid()) in MergeFunctionDecl()
3017 Diag(Warnings[Warn].OldParm->getLocation(), in MergeFunctionDecl()
3040 Diag(New->getLocation(), diag::warn_redecl_library_builtin) << New; in MergeFunctionDecl()
3061 Diag(New->getLocation(), diag::err_conflicting_types) << New->getDeclName(); in MergeFunctionDecl()
3205 Diag(New->getLocation(), diag::err_redefinition_different_type) in MergeVarDeclTypes()
3207 Diag(Old->getLocation(), diag::note_previous_definition); in MergeVarDeclTypes()
3272 Diag(New->getLocation(), diag::err_redefinition_different_kind) in MergeVarDecl()
3274 Diag(Previous.getRepresentativeDecl()->getLocation(), in MergeVarDecl()
3294 Diag(New->getLocation(), diag::err_duplicate_member) in MergeVarDecl()
3296 Diag(Old->getLocation(), diag::note_previous_declaration); in MergeVarDecl()
3306 Diag(New->getLocation(), diag::warn_weak_import) << New->getDeclName(); in MergeVarDecl()
3307 Diag(Old->getLocation(), diag::note_previous_definition); in MergeVarDecl()
3335 Diag(New->getLocation(), diag::ext_static_non_static) in MergeVarDecl()
3339 Diag(New->getLocation(), diag::err_static_non_static) in MergeVarDecl()
3359 Diag(New->getLocation(), diag::err_non_static_static) << New->getDeclName(); in MergeVarDecl()
3367 Diag(New->getLocation(), diag::err_extern_non_extern) << New->getDeclName(); in MergeVarDecl()
3373 Diag(New->getLocation(), diag::err_non_extern_extern) << New->getDeclName(); in MergeVarDecl()
3386 Diag(New->getLocation(), diag::err_redefinition) << New->getDeclName(); in MergeVarDecl()
3393 Diag(New->getLocation(), diag::err_thread_non_thread) << New->getDeclName(); in MergeVarDecl()
3396 Diag(New->getLocation(), diag::err_non_thread_thread) << New->getDeclName(); in MergeVarDecl()
3403 Diag(New->getLocation(), diag::err_thread_thread_different_kind) in MergeVarDecl()
3414 Diag(New->getLocation(), diag::err_redefinition) << New; in MergeVarDecl()
3415 Diag(Def->getLocation(), diag::note_previous_definition); in MergeVarDecl()
3421 Diag(New->getLocation(), diag::err_different_language_linkage) << New; in MergeVarDecl()
3511 Diag(NewTD->getLocation(), diag::err_typedef_changes_linkage); in setTagNameForLinkagePurposes()
3800 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in CheckAnonMemberRedeclaration()
3839 VD->getLocation(), diagKind)) { in InjectAnonymousStructOrUnionMembers()
3864 SemaRef.Context, Owner, VD->getLocation(), VD->getIdentifier(), in InjectAnonymousStructOrUnionMembers()
3918 return FD->getLocation(); in findDefaultInitializer()
3953 Diag(Record->getLocation(), diag::ext_anonymous_union); in BuildAnonymousStructOrUnion()
3955 Diag(Record->getLocation(), diag::ext_gnu_anonymous_struct); in BuildAnonymousStructOrUnion()
3957 Diag(Record->getLocation(), diag::ext_c11_anonymous_struct); in BuildAnonymousStructOrUnion()
3973 Diag(Record->getLocation(), diag::err_anonymous_union_not_static) in BuildAnonymousStructOrUnion()
3974 << FixItHint::CreateInsertion(Record->getLocation(), "static "); in BuildAnonymousStructOrUnion()
4032 Diag(FD->getLocation(), diag::err_anonymous_record_nonpublic_member) in BuildAnonymousStructOrUnion()
4056 Diag(MemRecord->getLocation(), diag::ext_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4060 Diag(MemRecord->getLocation(), diag::err_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4068 Diag(MemRecord->getLocation(), in BuildAnonymousStructOrUnion()
4090 Diag(Mem->getLocation(), diag::ext_anonymous_record_with_type) in BuildAnonymousStructOrUnion()
4093 Diag(Mem->getLocation(), DK) in BuildAnonymousStructOrUnion()
4110 Diag(Record->getLocation(), diag::err_anonymous_struct_not_member) in BuildAnonymousStructOrUnion()
4125 Record->getLocation(), in BuildAnonymousStructOrUnion()
4140 Diag(Record->getLocation(), diag::err_mutable_nonmember); in BuildAnonymousStructOrUnion()
4147 Record->getLocation(), /*IdentifierInfo=*/nullptr, in BuildAnonymousStructOrUnion()
4243 if (RequireCompleteType(Anon->getLocation(), RecTy, in BuildMicrosoftCAnonymousStruct()
5039 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size); in CheckTypedefForVariablyModifiedType()
5043 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size); in CheckTypedefForVariablyModifiedType()
5045 Diag(NewTD->getLocation(), diag::err_vla_decl_in_file_scope); in CheckTypedefForVariablyModifiedType()
5047 Diag(NewTD->getLocation(), diag::err_array_too_large) in CheckTypedefForVariablyModifiedType()
5050 Diag(NewTD->getLocation(), diag::err_vm_decl_in_file_scope); in CheckTypedefForVariablyModifiedType()
5173 Diag(decl->getLocation(), diag::err_arc_autoreleasing_var) in inferObjCARCLifetime()
5190 Diag(var->getLocation(), diag::err_arc_thread_ownership) in inferObjCARCLifetime()
5207 S.Diag(Attr->getLocation(), diag::err_attribute_weak_static); in checkAttributesAfterMerging()
5213 S.Diag(Attr->getLocation(), diag::err_attribute_weakref_not_static); in checkAttributesAfterMerging()
5224 S.Diag(Attr->getLocation(), diag::err_alias_is_definition) << VD; in checkAttributesAfterMerging()
5234 S.Diag(Attr->getLocation(), diag::err_attribute_selectany_non_extern_data); in checkAttributesAfterMerging()
5242 S.Diag(ND.getLocation(), diag::err_attribute_dll_not_extern) in checkAttributesAfterMerging()
5291 S.Diag(NewDecl->getLocation(), DiagID) in checkDLLAttributeRedeclaration()
5294 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration); in checkDLLAttributeRedeclaration()
5318 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
5321 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration); in checkDLLAttributeRedeclaration()
5322 S.Diag(OldImportAttr->getLocation(), diag::note_previous_attribute); in checkDLLAttributeRedeclaration()
5330 S.Diag(NewDecl->getLocation(), in checkDLLAttributeRedeclaration()
5795 Diag(NewVD->getLocation(), diag::err_module_private_specialization) in ActOnVariableDeclarator()
5800 Diag(NewVD->getLocation(), diag::err_module_private_specialization) in ActOnVariableDeclarator()
5804 Diag(NewVD->getLocation(), diag::err_module_private_local) in ActOnVariableDeclarator()
5918 Diag(NewVD->getLocation(), diag::err_nonstatic_member_out_of_line) in ActOnVariableDeclarator()
6075 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration); in CheckShadow()
6080 if (Diags.isIgnored(diag::warn_decl_shadow, D->getLocation())) in CheckShadow()
6083 LookupResult R(*this, D->getDeclName(), D->getLocation(), in CheckShadow()
6159 S.Diag(ND->getLocation(), diag::err_extern_c_global_conflict) in checkGlobalOrExternCConflict()
6161 S.Diag(Prev->getLocation(), diag::note_extern_c_global_conflict) in checkGlobalOrExternCConflict()
6222 Diag(NewVD->getLocation(), diag::err_statically_allocated_object) in CheckVariableDeclarationType()
6223 << FixItHint::CreateInsertion(NewVD->getLocation(), "*"); in CheckVariableDeclarationType()
6233 Diag(NewVD->getLocation(), diag::err_as_qualified_auto_decl); in CheckVariableDeclarationType()
6243 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space); in CheckVariableDeclarationType()
6252 Diag(NewVD->getLocation(), diag::err_static_function_scope); in CheckVariableDeclarationType()
6260 Diag(NewVD->getLocation(), diag::warn_gc_attribute_weak_on_local); in CheckVariableDeclarationType()
6263 Diag(NewVD->getLocation(), diag::warn_attribute_weak_on_local); in CheckVariableDeclarationType()
6286 Diag(NewVD->getLocation(), diag::err_vla_decl_in_file_scope) in CheckVariableDeclarationType()
6289 Diag(NewVD->getLocation(), diag::err_vla_decl_has_static_storage) in CheckVariableDeclarationType()
6292 Diag(NewVD->getLocation(), diag::err_vla_decl_has_extern_linkage) in CheckVariableDeclarationType()
6300 Diag(NewVD->getLocation(), diag::err_vm_decl_in_file_scope); in CheckVariableDeclarationType()
6302 Diag(NewVD->getLocation(), diag::err_vm_decl_has_extern_linkage); in CheckVariableDeclarationType()
6307 Diag(NewVD->getLocation(), diag::warn_illegal_constant_array_size); in CheckVariableDeclarationType()
6316 Diag(NewVD->getLocation(), diag::err_typecheck_decl_incomplete_type) in CheckVariableDeclarationType()
6324 Diag(NewVD->getLocation(), diag::err_block_on_nonlocal); in CheckVariableDeclarationType()
6330 Diag(NewVD->getLocation(), diag::err_block_on_vm); in CheckVariableDeclarationType()
6336 RequireLiteralType(NewVD->getLocation(), T, in CheckVariableDeclarationType()
6430 S.Diag(MD->getLocation(), DiagID) << MD->getDeclName(); in ReportOverrides()
6440 S.Diag((*I)->getLocation(), diag::note_overridden_virtual_function); in ReportOverrides()
6556 LookupResult Prev(SemaRef, Name, NewFD->getLocation(), in DiagnoseInvalidRedeclaration()
6650 SemaRef.Diag(NewFD->getLocation(), DiagMsg) in DiagnoseInvalidRedeclaration()
6651 << Name << NewDC << IsDefinition << NewFD->getLocation(); in DiagnoseInvalidRedeclaration()
6669 if (Loc.isInvalid()) Loc = FD->getLocation(); in DiagnoseInvalidRedeclaration()
6675 SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_const_match) in DiagnoseInvalidRedeclaration()
6678 SemaRef.Diag(FD->getLocation(), in DiagnoseInvalidRedeclaration()
6918 S.Diag(Param->getLocation(), diag::err_opencl_ptrptr_kernel_param); in checkIsValidOpenCLKernelParameter()
6926 S.Diag(Param->getLocation(), diag::err_opencl_private_ptr_kernel_param); in checkIsValidOpenCLKernelParameter()
6940 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT; in checkIsValidOpenCLKernelParameter()
7011 S.Diag(Param->getLocation(), in checkIsValidOpenCLKernelParameter()
7016 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT; in checkIsValidOpenCLKernelParameter()
7019 S.Diag(PD->getLocation(), diag::note_within_field_of_type) in checkIsValidOpenCLKernelParameter()
7029 S.Diag(OuterField->getLocation(), diag::note_within_field_of_type) in checkIsValidOpenCLKernelParameter()
7033 S.Diag(FD->getLocation(), diag::note_illegal_field_declared_here) in checkIsValidOpenCLKernelParameter()
7142 Diag(NewFD->getLocation(), diag::err_destructor_template); in ActOnFunctionDeclarator()
7157 NewFD->getLocation(), in ActOnFunctionDeclarator()
7471 Diag(NewFD->getLocation(), diag::err_vm_func_decl); in ActOnFunctionDeclarator()
7499 Diag(NewFD->getLocation(), in ActOnFunctionDeclarator()
7535 Diag(NewFD->getLocation(), DiagID) in ActOnFunctionDeclarator()
7613 Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ? in ActOnFunctionDeclarator()
7630 Diag(NewFD->getLocation(), in ActOnFunctionDeclarator()
7637 Diag(NewFD->getLocation(), in ActOnFunctionDeclarator()
7773 Diag(NewFD->getLocation(), diag::ext_out_of_line_declaration) in ActOnFunctionDeclarator()
7785 Diag(NewFD->getLocation(), in ActOnFunctionDeclarator()
7867 Diag(NewFD->getLocation(), diag::err_config_scalar_return); in ActOnFunctionDeclarator()
7955 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing) in CheckFunctionDeclaration()
7963 Diag(OverloadedDecl->getLocation(), in CheckFunctionDeclaration()
7984 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing) in CheckFunctionDeclaration()
7986 Diag(Previous.getFoundDecl()->getLocation(), in CheckFunctionDeclaration()
8030 Diag(MD->getLocation(), diag::warn_cxx14_compat_constexpr_not_const) in CheckFunctionDeclaration()
8094 Diag(NewFD->getLocation(), diag::err_destructor_name); in CheckFunctionDeclaration()
8161 Diag(NewFD->getLocation(), diag::warn_return_value_udt_incomplete) in CheckFunctionDeclaration()
8165 Diag(NewFD->getLocation(), diag::warn_return_value_udt) << NewFD << R; in CheckFunctionDeclaration()
8200 Diag(FD->getLocation(), diag::err_opencl_no_main) in CheckMain()
8259 Diag(FD->getLocation(), diag::err_main_surplus_args) << nparams; in CheckMain()
8296 Diag(FD->getLocation(), diag::err_main_arg_wrong) << i << Expected[i]; in CheckMain()
8303 Diag(FD->getLocation(), diag::warn_main_one_arg); in CheckMain()
8307 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD; in CheckMain()
8327 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD; in CheckMSVCRTEntryPoint()
8654 << OrigDecl->getLocation() in HandleDeclRefExpr()
8703 Diag(Method->getLocation(), diag::err_member_function_initialization) in AddInitializerToDecl()
8713 Diag(RealDecl->getLocation(), diag::err_illegal_initializer); in AddInitializerToDecl()
8832 Diag(VDecl->getLocation(), diag::err_attribute_dllimport_data_definition); in AddInitializerToDecl()
8839 Diag(VDecl->getLocation(), diag::err_block_extern_cant_init); in AddInitializerToDecl()
8851 if (RequireCompleteType(VDecl->getLocation(), BaseDeclType, in AddInitializerToDecl()
8858 if (RequireNonAbstractType(VDecl->getLocation(), VDecl->getType(), in AddInitializerToDecl()
8866 Diag(VDecl->getLocation(), diag::err_redefinition) in AddInitializerToDecl()
8868 Diag(Def->getLocation(), diag::note_previous_definition); in AddInitializerToDecl()
8906 Diag(VDecl->getLocation(), diag::err_local_cant_init); in AddInitializerToDecl()
8932 CXXDirectInit ? InitializationKind::CreateDirect(VDecl->getLocation(), in AddInitializerToDecl()
8936 VDecl->getLocation()) in AddInitializerToDecl()
8937 : InitializationKind::CreateCopy(VDecl->getLocation(), in AddInitializerToDecl()
8987 checkUnsafeAssigns(VDecl->getLocation(), VDecl->getType(), Init); in AddInitializerToDecl()
9016 ExprResult Result = ActOnFinishFullExpr(Init, VDecl->getLocation(), in AddInitializerToDecl()
9080 Diag(VDecl->getLocation(), diag::err_in_class_initializer_non_const) in AddInitializerToDecl()
9091 Diag(VDecl->getLocation(), diag::err_in_class_initializer_volatile); in AddInitializerToDecl()
9114 Diag(VDecl->getLocation(), in AddInitializerToDecl()
9121 Diag(VDecl->getLocation(), diag::ext_in_class_initializer_float_type) in AddInitializerToDecl()
9133 Diag(VDecl->getLocation(), diag::err_in_class_initializer_literal_type) in AddInitializerToDecl()
9139 Diag(VDecl->getLocation(), diag::err_in_class_initializer_bad_type) in AddInitializerToDecl()
9149 Diag(VDecl->getLocation(), diag::warn_extern_init); in AddInitializerToDecl()
9202 if (RequireCompleteType(VD->getLocation(), in ActOnInitializerError()
9210 if (RequireNonAbstractType(VD->getLocation(), Ty, in ActOnInitializerError()
9232 Diag(Var->getLocation(), diag::err_auto_var_requires_init) in ActOnUninitializedDecl()
9246 Diag(Var->getLocation(), in ActOnUninitializedDecl()
9250 Diag(Var->getLocation(), diag::err_invalid_constexpr_var_decl); in ActOnUninitializedDecl()
9260 Diag(Var->getLocation(), diag::err_opencl_constant_no_init); in ActOnUninitializedDecl()
9284 RequireCompleteType(Var->getLocation(), Type, in ActOnUninitializedDecl()
9290 RequireNonAbstractType(Var->getLocation(), Type, in ActOnUninitializedDecl()
9296 Diag(Var->getLocation(), diag::warn_private_extern); in ActOnUninitializedDecl()
9297 Diag(Var->getLocation(), diag::note_private_extern); in ActOnUninitializedDecl()
9311 if (RequireCompleteType(Var->getLocation(), in ActOnUninitializedDecl()
9326 RequireCompleteType(Var->getLocation(), Type, in ActOnUninitializedDecl()
9340 Diag(Var->getLocation(), in ActOnUninitializedDecl()
9349 Diag(Var->getLocation(), diag::err_reference_var_requires_init) in ActOnUninitializedDecl()
9351 << SourceRange(Var->getLocation(), Var->getLocation()); in ActOnUninitializedDecl()
9365 if (RequireCompleteType(Var->getLocation(), in ActOnUninitializedDecl()
9376 if (RequireNonAbstractType(Var->getLocation(), Type, in ActOnUninitializedDecl()
9421 = InitializationKind::CreateDefault(Var->getLocation()); in ActOnUninitializedDecl()
9440 Diag(D->getLocation(), diag::err_for_range_decl_must_be_var); in ActOnCXXForRangeDecl()
9537 var->getLocation())) { in CheckCompleteVariableDeclaration()
9544 Diag(var->getLocation(), diag::warn_missing_variable_declarations) << var; in CheckCompleteVariableDeclaration()
9553 Diag(var->getLocation(), diag::err_thread_nontrivial_dtor); in CheckCompleteVariableDeclaration()
9555 Diag(var->getLocation(), diag::note_use_thread_local); in CheckCompleteVariableDeclaration()
9566 Diag(var->getLocation(), diag::note_use_thread_local); in CheckCompleteVariableDeclaration()
9618 SourceLocation poi = var->getLocation(); in CheckCompleteVariableDeclaration()
9640 var->getLocation())) { in CheckCompleteVariableDeclaration()
9647 Diag(var->getLocation(), diag::warn_global_constructor) in CheckCompleteVariableDeclaration()
9654 SourceLocation DiagLoc = var->getLocation(); in CheckCompleteVariableDeclaration()
9720 Diag(VD->getLocation(), in FinalizeDeclaration()
9724 Diag(IA->getLocation(), diag::note_attribute); in FinalizeDeclaration()
9733 Diag(VD->getLocation(), diag::err_attribute_dll_thread_local) << VD in FinalizeDeclaration()
9740 Diag(Attr->getLocation(), diag::warn_attribute_ignored) << Attr; in FinalizeDeclaration()
9877 Group[0]->getLocation()) && in ActOnDocumentableDecls()
9879 Group[0]->getLocation())) in ActOnDocumentableDecls()
9982 Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in ActOnParamDeclarator()
10017 Diag(New->getLocation(), diag::err_module_private_local) in ActOnParamDeclarator()
10023 Diag(New->getLocation(), diag::err_block_on_nonlocal); in ActOnParamDeclarator()
10053 Diag((*Param)->getLocation(), diag::warn_unused_parameter) in DiagnoseUnusedParameters()
10071 Diag(D->getLocation(), diag::warn_return_value_size) in DiagnoseSizeOfParametersAndReturnValue()
10083 Diag((*Param)->getLocation(), diag::warn_parameter_size) in DiagnoseSizeOfParametersAndReturnValue()
10286 Diag(FD->getLocation(), diag::err_redefinition_extern_inline) in CheckForFunctionRedefinition()
10289 Diag(FD->getLocation(), diag::err_redefinition) << FD->getDeclName(); in CheckForFunctionRedefinition()
10291 Diag(Definition->getLocation(), diag::note_previous_definition); in CheckForFunctionRedefinition()
10328 /*RefersToEnclosingVariableOrCapture*/true, C.getLocation(), in RebuildLambdaScopeInfo()
10334 LSI->addThisCapture(/*Nested*/ false, C.getLocation(), in RebuildLambdaScopeInfo()
10337 LSI->addVLATypeCapture(C.getLocation(), I->getType()); in RebuildLambdaScopeInfo()
10382 Diag(FD->getLocation(), diag::err_builtin_definition) << FD; in ActOnStartOfFunctionDef()
10392 RequireCompleteType(FD->getLocation(), ResultType, in ActOnStartOfFunctionDef()
10454 ResolveExceptionSpec(D->getLocation(), FPT); in ActOnStartOfFunctionDef()
10460 Diag(FD->getLocation(), diag::err_attribute_dllimport_function_definition); in ActOnStartOfFunctionDef()
10470 Diag(FD->getLocation(), diag::warn_function_def_in_objc_container); in ActOnStartOfFunctionDef()
10562 Diag(dcl->getLocation(), diag::err_auto_fn_no_return_but_not_auto) in ActOnFinishFunctionBody()
10593 Diag(FD->getLocation(), diag::ext_pure_function_definition); in ActOnFinishFunctionBody()
10604 MarkVTableUsed(FD->getLocation(), Constructor->getParent()); in ActOnFinishFunctionBody()
10606 MarkVTableUsed(FD->getLocation(), Destructor->getParent()); in ActOnFinishFunctionBody()
10623 Diag(FD->getLocation(), diag::warn_missing_prototype) << FD; in ActOnFinishFunctionBody()
10632 Diag(PossibleZeroParamPrototype->getLocation(), in ActOnFinishFunctionBody()
10656 MarkVTableUsed(Definition->getLocation(), MD->getParent(), true); in ActOnFinishFunctionBody()
10659 MarkVTableUsed(FD->getLocation(), MD->getParent(), true); in ActOnFinishFunctionBody()
10702 Diag(MD->getLocation(), in ActOnFinishFunctionBody()
10704 Diag(InitMethod->getLocation(), in ActOnFinishFunctionBody()
10712 Diag(MD->getLocation(), in ActOnFinishFunctionBody()
10741 MarkBaseAndMemberDestructorsReferenced(Destructor->getLocation(), in ActOnFinishFunctionBody()
10768 Diag(FD->getAttr<NakedAttr>()->getLocation(), diag::note_attribute); in ActOnFinishFunctionBody()
10823 Diag(ExternCPrev->getLocation(), diag::note_previous_declaration); in ImplicitlyDefineFunction()
10931 FD->getLocation())); in AddKnownFunctionAttributes()
10941 FD->getLocation())); in AddKnownFunctionAttributes()
10950 FD->addAttr(ConstAttr::CreateImplicit(Context, FD->getLocation())); in AddKnownFunctionAttributes()
10956 FD->getLocation())); in AddKnownFunctionAttributes()
10958 FD->addAttr(NoThrowAttr::CreateImplicit(Context, FD->getLocation())); in AddKnownFunctionAttributes()
10960 FD->addAttr(ConstAttr::CreateImplicit(Context, FD->getLocation())); in AddKnownFunctionAttributes()
10983 FD->getLocation())); in AddKnownFunctionAttributes()
10991 FD->getLocation())); in AddKnownFunctionAttributes()
11020 Diag(NewTD->getLocation(), diag::err_module_private_local) in ParseTypedefDecl()
11079 Diag(Prev->getLocation(), diag::note_previous_declaration); in CheckEnumRedeclaration()
11091 Diag(Prev->getLocation(), diag::note_previous_declaration) in CheckEnumRedeclaration()
11098 Diag(Prev->getLocation(), diag::note_previous_declaration); in CheckEnumRedeclaration()
11207 Diag(Redecl->getLocation(), diag::note_previous_use); in isAcceptableTagRedeclaration()
11647 Diag(PrevTagDecl->getLocation(), diag::note_previous_use); in ActOnTag()
11693 Diag(PrevTagDecl->getLocation(), diag::note_previous_declaration); in ActOnTag()
11748 Diag(Def->getLocation(), diag::note_previous_definition); in ActOnTag()
11762 Diag(PrevTagDecl->getLocation(), in ActOnTag()
11811 Diag(PrevDecl->getLocation(), diag::note_declared_at); in ActOnTag()
11826 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl; in ActOnTag()
11836 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl; in ActOnTag()
11844 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnTag()
11889 Diag(Def->getLocation(), diag::note_previous_definition); in ActOnTag()
11935 Diag(New->getLocation(), diag::err_type_defined_in_type_specifier) in ActOnTag()
11982 Diag(New->getLocation(), diag::err_module_private_specialization) in ActOnTag()
12129 Record->getLocStart(), Record->getLocation(), in ActOnStartCXXMemberDeclarations()
12520 Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in CheckFieldDecl()
12543 Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ? in CheckFieldDecl()
12613 SourceLocation Loc = FD->getLocation(); in CheckNontrivialField()
12623 Diag(FD->getLocation(), getLangOpts().CPlusPlus11 ? in CheckNontrivialField()
12729 Diag(PrevDecl->getLocation(), diag::note_previous_declaration); in ActOnIvar()
12869 Diag(FD->getLocation(), diag::err_field_declared_as_function) in ActOnFields()
12900 Diag(FD->getLocation(), DiagID) << FD->getDeclName() in ActOnFields()
12909 Diag(FD->getLocation(), diag::err_flexible_array_virtual_base) in ActOnFields()
12912 Diag(FD->getLocation(), diag::ext_c99_flexible_array_member) in ActOnFields()
12922 Diag(FD->getLocation(), diag::err_flexible_array_has_nontrivial_dtor) in ActOnFields()
12931 RequireCompleteType(FD->getLocation(), FD->getType(), in ActOnFields()
12947 Diag(FD->getLocation(), diag::ext_variable_sized_type_in_struct) in ActOnFields()
12952 Diag(FD->getLocation(), diag::ext_flexible_array_in_struct) in ActOnFields()
12958 RequireNonAbstractType(FD->getLocation(), FD->getType(), in ActOnFields()
12970 Diag(FD->getLocation(), diag::err_statically_allocated_object) in ActOnFields()
12971 << FixItHint::CreateInsertion(FD->getLocation(), "*"); in ActOnFields()
12984 SourceLocation loc = FD->getLocation(); in ActOnFields()
12992 Diag(FD->getLocation(), diag::err_arc_objc_object_in_tag) in ActOnFields()
13064 Diag(Record->getLocation(), diag::err_multiple_final_overriders) in ActOnFields()
13066 Diag(M->first->getLocation(), in ActOnFields()
13072 Diag(OM->Method->getLocation(), diag::note_final_overrider) in ActOnFields()
13186 Diag(ClsFields[i]->getLocation(), in ActOnFields()
13188 Diag(ClsIvar->getLocation(), diag::note_previous_definition); in ActOnFields()
13194 Diag(ClsFields[i]->getLocation(), in ActOnFields()
13196 Diag(ClsExtIvar->getLocation(), diag::note_previous_definition); in ActOnFields()
13459 Diag(PrevDecl->getLocation(), diag::note_previous_definition); in ActOnEnumConstant()
13562 if (S.Diags.isIgnored(diag::warn_duplicate_enum_values, Enum->getLocation())) in CheckForDuplicateEnumValues()
13652 S.Diag((*I)->getLocation(), diag::warn_duplicate_enum_values) in CheckForDuplicateEnumValues()
13660 S.Diag((*I)->getLocation(), diag::note_duplicate_element) in CheckForDuplicateEnumValues()
13821 Diag(Enum->getLocation(), diag::ext_enum_too_large); in ActOnEnumBody()
13945 Diag(ECD->getLocation(), diag::warn_flag_enum_constant_out_of_range) in ActOnEnumBody()