Lines Matching refs:getLocation

438             (*Res)->getLocation().getRawEncoding() <
439 IIDecl->getLocation().getRawEncoding())
484 MarkAnyDeclReferenced(TD->getLocation(), TD, /*OdrUse=*/false);
822 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)
1128 MarkAnyDeclReferenced(Type->getLocation(), Type, /*OdrUse=*/false);
1562 Diag(New->getLocation(), diag::err_mismatched_owning_module)
1568 Diag(Old->getLocation(), diag::note_previous_declaration);
1669 if (FD->isInlined() && !isMainFileLoc(*this, FD->getLocation()))
1680 if (!isMainFileLoc(*this, VD->getLocation()))
1694 if (VD->isInline() && !isMainFileLoc(*this, VD->getLocation()))
1879 Diag(D->getLocation(), DiagID) << D << Hint;
1893 S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName();
1928 Diag(D->getLocation(), diag::warn_ctor_parm_shadows_field)
1930 Diag(FD->getLocation(), diag::note_previous_declaration);
2194 Diag(New->getLocation(), diag::err_redefinition_variably_modified_typedef)
2196 if (Old->getLocation().isValid())
2197 notePreviousDefinition(Old, New->getLocation());
2207 Diag(New->getLocation(), diag::err_redefinition_different_typedef)
2209 if (Old->getLocation().isValid())
2210 notePreviousDefinition(Old, New->getLocation());
2272 Diag(New->getLocation(), diag::err_redefinition_different_kind)
2276 if (OldD->getLocation().isValid())
2277 notePreviousDefinition(OldD, New->getLocation());
2367 Diag(New->getLocation(), diag::err_redefinition)
2369 notePreviousDefinition(Old, New->getLocation());
2384 Context.getSourceManager().isInSystemHeader(Old->getLocation()) ||
2385 Context.getSourceManager().isInSystemHeader(New->getLocation())))
2388 Diag(New->getLocation(), diag::ext_redefinition_of_typedef)
2390 notePreviousDefinition(Old, New->getLocation());
2489 S.Diag(NewAlignasAttr->getLocation(), diag::err_alignas_mismatch)
2492 S.Diag(OldAlignasAttr->getLocation(), diag::note_previous_declaration);
2505 S.Diag(New->getLocation(), diag::err_alignas_missing_on_definition)
2507 S.Diag(OldAlignasAttr->getLocation(), diag::note_alignas_on_declaration)
2665 S.Diag(VD->getLocation(), Diag) << VD->getDeclName();
2667 S.notePreviousDefinition(Def, VD->getLocation());
2669 S.Diag(Def->getLocation(), diag::note_previous_definition);
2707 S.Diag(Def->getLocation(), diag::err_alignas_missing_on_definition)
2709 S.Diag(NewAttribute->getLocation(), diag::note_alignas_on_declaration)
2726 S.Diag(NewAttribute->getLocation(),
2728 S.Diag(Def->getLocation(), diag::note_previous_definition);
2772 S.Diag(InitDecl->getLocation(), diag::ext_constinit_missing)
2774 S.Diag(CIAttr->getLocation(), diag::note_constinit_specified_here);
2778 S.Diag(CIAttr->getLocation(),
2781 << FixItHint::CreateRemoval(SourceRange(CIAttr->getLocation()));
2782 S.Diag(InitDecl->getLocation(), diag::note_constinit_missing_here)
2842 Diag(New->getLocation(), diag::err_different_asm_label);
2843 Diag(OldA->getLocation(), diag::note_previous_declaration);
2848 Diag(New->getLocation(), diag::err_late_asm_label_name)
2859 Diag(NewAbiTagAttr->getLocation(),
2862 Diag(OldAbiTagAttr->getLocation(), diag::note_previous_declaration);
2866 Diag(NewAbiTagAttr->getLocation(), diag::err_abi_tag_on_redeclaration);
2867 Diag(Old->getLocation(), diag::note_previous_declaration);
2875 Diag(New->getLocation(), diag::warn_attribute_section_on_redeclaration);
2876 Diag(Old->getLocation(), diag::note_previous_declaration);
2885 Diag(New->getLocation(), diag::warn_mismatched_section)
2887 Diag(Old->getLocation(), diag::note_previous_declaration);
2942 S.Diag(CDA->getLocation(),
2950 S.Diag(FirstVD->getLocation(),
2982 S.Diag(NewParam->getLocation(), diag::warn_mismatched_nullability_attr)
2991 S.Diag(OldParam->getLocation(), diag::note_previous_declaration);
3021 SourceLocation OldLocation = Old->getLocation();
3027 OldLocation = New->getLocation();
3099 S.Diag(New->getLocation(), diag::err_using_decl_conflict_reverse);
3100 S.Diag(OldS->getTargetDecl()->getLocation(), diag::note_using_decl_target);
3101 S.Diag(OldS->getUsingDecl()->getLocation(), diag::note_using_decl) << 0;
3183 Diag(New->getLocation(), diag::err_using_decl_friend);
3184 Diag(Shadow->getTargetDecl()->getLocation(),
3186 Diag(Shadow->getUsingDecl()->getLocation(),
3196 Diag(New->getLocation(), diag::err_redefinition_different_kind)
3198 notePreviousDefinition(OldD, New->getLocation());
3209 Diag(New->getLocation(), diag::err_builtin_redeclare) << Old->getDeclName();
3210 Diag(Old->getLocation(), diag::note_previous_builtin_declaration)
3230 Diag(New->getLocation(), diag::ext_static_non_static) << New;
3233 Diag(New->getLocation(), diag::err_static_non_static) << New;
3241 Diag(New->getLocation(), diag::err_internal_linkage_redeclaration)
3243 notePreviousDefinition(Old, New->getLocation());
3253 Diag(New->getLocation(), diag::err_attribute_overloadable_mismatch)
3274 Diag(DiagOld->getLocation(),
3321 Diag(New->getLocation(), diag::warn_cconv_unsupported)
3329 Diag(New->getLocation(), diag::err_cconv_change)
3336 Diag(First->getLocation(), diag::note_previous_declaration);
3351 Diag(New->getLocation(), diag::err_regparm_mismatch)
3365 Diag(New->getLocation(), diag::err_function_attribute_mismatch)
3380 Diag(New->getLocation(), diag::err_function_attribute_mismatch) << Attr;
3417 Diag(New->getLocation(), diag::err_different_pass_object_size_params)
3456 Diag(New->getLocation(), diag::err_member_def_does_not_match_ret_type)
3459 Diag(New->getLocation(), diag::err_ovl_diff_return_type)
3507 Diag(New->getLocation(), diag::err_ovl_static_nonstatic_member);
3527 Diag(New->getLocation(), NewDiag);
3529 Diag(New->getLocation(), diag::err_member_redeclared_in_instantiation)
3544 Diag(NewMethod->getLocation(),
3550 Diag(NewMethod->getLocation(),
3563 Diag(NRA->getLocation(), diag::err_noreturn_missing_on_first_decl);
3564 Diag(Old->getFirstDecl()->getLocation(),
3574 Diag(CDA->getLocation(),
3576 Diag(Old->getFirstDecl()->getLocation(),
3605 Diag(New->getLocation(), diag::ext_retained_language_linkage) << New;
3608 Diag(New->getLocation(), diag::err_different_language_linkage) << New;
3719 Diag(Warnings[Warn].NewParm->getLocation(),
3723 if (Warnings[Warn].OldParm->getLocation().isValid())
3724 Diag(Warnings[Warn].OldParm->getLocation(),
3747 Diag(New->getLocation(), diag::warn_redecl_library_builtin) << New;
3768 Diag(New->getLocation(), diag::err_conflicting_types) << New->getDeclName();
3843 S.Diag(New->getLocation(), New->isThisDeclarationADefinition()
4019 Diag(New->getLocation(), diag::err_redefinition_different_kind)
4022 New->getLocation());
4038 Diag(New->getLocation(), diag::err_duplicate_member)
4040 Diag(Old->getLocation(), diag::note_previous_declaration);
4050 Diag(New->getLocation(), diag::warn_weak_import) << New->getDeclName();
4051 notePreviousDefinition(Old, New->getLocation());
4058 Diag(New->getLocation(), diag::err_internal_linkage_redeclaration)
4060 notePreviousDefinition(Old, New->getLocation());
4087 Diag(New->getLocation(), diag::ext_static_non_static)
4091 Diag(New->getLocation(), diag::err_static_non_static)
4111 Diag(New->getLocation(), diag::err_non_static_static) << New->getDeclName();
4119 Diag(New->getLocation(), diag::err_extern_non_extern) << New->getDeclName();
4125 Diag(New->getLocation(), diag::err_non_extern_extern) << New->getDeclName();
4141 Diag(New->getLocation(), diag::err_redefinition) << New->getDeclName();
4151 Diag(New->getLocation(), diag::err_inline_decl_follows_def) << New;
4152 Diag(Def->getLocation(), diag::note_previous_definition);
4165 Diag(New->getLocation(), diag::err_thread_non_thread) << New->getDeclName();
4168 Diag(New->getLocation(), diag::err_non_thread_thread) << New->getDeclName();
4175 Diag(New->getLocation(), diag::err_thread_thread_different_kind)
4187 Diag(New->getLocation(),
4196 Diag(New->getLocation(), diag::err_different_language_linkage) << New;
4224 auto FOldDecLoc = SrcMgr.getDecomposedLoc(Old->getLocation());
4229 SrcMgr.getFilename(SrcMgr.getSpellingLoc(Old->getLocation()));
4265 Diag(Old->getLocation(), diag::note_use_ifdef_guards);
4272 if (Old->getLocation().isValid())
4273 Diag(Old->getLocation(), diag::note_previous_definition);
4295 Diag(New->getLocation(), diag::err_redefinition) << New;
4296 notePreviousDefinition(Old, New->getLocation());
4379 Diag(NewTD->getLocation(), diag::err_typedef_changes_linkage);
4695 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
4728 VD->getLocation(),
4754 SemaRef.Context, Owner, VD->getLocation(), VD->getIdentifier(),
4808 return FD->getLocation();
4843 Diag(Record->getLocation(), diag::ext_anonymous_union);
4845 Diag(Record->getLocation(), diag::ext_gnu_anonymous_struct);
4847 Diag(Record->getLocation(), diag::ext_c11_anonymous_struct);
4865 Diag(Record->getLocation(), diag::err_anonymous_union_not_static)
4866 << FixItHint::CreateInsertion(Record->getLocation(), "static ");
4929 Diag(FD->getLocation(), diag::err_anonymous_record_nonpublic_member)
4953 Diag(MemRecord->getLocation(), diag::ext_anonymous_record_with_type)
4957 Diag(MemRecord->getLocation(), diag::err_anonymous_record_with_type)
4965 Diag(MemRecord->getLocation(),
4987 Diag(Mem->getLocation(), diag::ext_anonymous_record_with_type)
4990 Diag(Mem->getLocation(), DK) << Record->isUnion();
5006 Diag(Record->getLocation(), diag::err_anonymous_struct_not_member)
5032 Context, OwningClass, DS.getBeginLoc(), Record->getLocation(),
5047 Diag(Record->getLocation(), diag::err_mutable_nonmember);
5054 Record->getLocation(), /*IdentifierInfo=*/nullptr,
5146 if (RequireCompleteType(Anon->getLocation(), RecTy,
5194 Diag(Template->getLocation(), diag::note_template_decl_here);
5979 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size);
5983 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size);
5985 Diag(NewTD->getLocation(), diag::err_vla_decl_in_file_scope);
5987 Diag(NewTD->getLocation(), diag::err_array_too_large)
5990 Diag(NewTD->getLocation(), diag::err_vm_decl_in_file_scope);
6121 Diag(decl->getLocation(), diag::err_arc_autoreleasing_var)
6138 Diag(var->getLocation(), diag::err_arc_thread_ownership)
6190 S.Diag(Attr->getLocation(), diag::err_attribute_weak_static);
6196 S.Diag(Attr->getLocation(), diag::err_attribute_weakref_not_static);
6207 S.Diag(Attr->getLocation(), diag::err_alias_is_definition) << VD << 0;
6217 S.Diag(Attr->getLocation(),
6242 S.Diag(ND.getLocation(), diag::err_attribute_dll_not_extern)
6252 S.Diag(ND.getLocation(),
6273 S.Diag(A->getLocation(), diag::err_lifetimebound_no_object_param)
6276 S.Diag(A->getLocation(), diag::err_lifetimebound_ctor_dtor)
6343 S.Diag(NewDecl->getLocation(), DiagID)
6346 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
6376 S.Diag(NewDecl->getLocation(),
6379 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
6384 S.Diag(NewDecl->getLocation(),
6387 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
6388 S.Diag(OldImportAttr->getLocation(), diag::note_previous_attribute);
6397 S.Diag(NewDecl->getLocation(),
6729 checkNonTrivialCUnion(NewVD->getType(), NewVD->getLocation(),
6997 Diag(NewVD->getLocation(), diag::err_module_private_specialization)
7002 Diag(NewVD->getLocation(), diag::err_module_private_specialization)
7006 Diag(NewVD->getLocation(), diag::err_module_private_local)
7112 Diag(NewVD->getLocation(), diag::warn_redefine_extname_not_applied)
7153 Diag(NewVD->getLocation(), diag::err_nonstatic_member_out_of_line)
7285 return Capture.getLocation();
7440 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration);
7451 Diag(Shadow.VD->getLocation(), CaptureLoc.isInvalid()
7459 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration);
7465 if (Diags.isIgnored(diag::warn_decl_shadow, D->getLocation()))
7468 LookupResult R(*this, D->getDeclName(), D->getLocation(),
7492 Diag(D->getLocation(), diag::note_var_declared_here) << D;
7493 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration);
7569 S.Diag(ND->getLocation(), diag::err_extern_c_global_conflict)
7571 S.Diag(Prev->getLocation(), diag::note_extern_c_global_conflict)
7631 Diag(NewVD->getLocation(), diag::err_statically_allocated_object)
7632 << FixItHint::CreateInsertion(NewVD->getLocation(), "*");
7643 Diag(NewVD->getLocation(), diag::err_as_qualified_auto_decl) << 0;
7653 Diag(NewVD->getLocation(), diag::err_static_function_scope);
7661 Diag(NewVD->getLocation(), diag::err_opencl_block_storage_type);
7669 Diag(NewVD->getLocation(), diag::err_opencl_invalid_block_declaration)
7675 Diag(NewVD->getLocation(), diag::err_opencl_extern_block_declaration);
7696 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space)
7699 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space)
7706 Diag(NewVD->getLocation(), diag::err_opencl_function_variable)
7718 Diag(NewVD->getLocation(), diag::err_opencl_function_variable)
7721 Diag(NewVD->getLocation(), diag::err_opencl_function_variable)
7731 Diag(NewVD->getLocation(), diag::err_opencl_addrspace_scope)
7734 Diag(NewVD->getLocation(), diag::err_opencl_addrspace_scope)
7745 Diag(NewVD->getLocation(), diag::err_as_qualified_auto_decl) << 1;
7755 Diag(NewVD->getLocation(), diag::warn_gc_attribute_weak_on_local);
7758 Diag(NewVD->getLocation(), diag::warn_attribute_weak_on_local);
7789 Diag(NewVD->getLocation(), diag::err_vla_decl_in_file_scope)
7792 Diag(NewVD->getLocation(), diag::err_vla_decl_has_static_storage)
7795 Diag(NewVD->getLocation(), diag::err_vla_decl_has_extern_linkage)
7803 Diag(NewVD->getLocation(), diag::err_vm_decl_in_file_scope);
7805 Diag(NewVD->getLocation(), diag::err_vm_decl_has_extern_linkage);
7810 Diag(NewVD->getLocation(), diag::warn_illegal_constant_array_size);
7819 Diag(NewVD->getLocation(), diag::err_typecheck_decl_incomplete_type)
7827 Diag(NewVD->getLocation(), diag::err_block_on_nonlocal);
7833 Diag(NewVD->getLocation(), diag::err_block_on_vm);
7839 RequireLiteralType(NewVD->getLocation(), T,
7931 S.Diag(MD->getLocation(), DiagID) << MD->getDeclName();
7939 S.Diag(O->getLocation(), diag::note_overridden_virtual_function);
8065 LookupResult Prev(SemaRef, Name, NewFD->getLocation(),
8161 SemaRef.Diag(NewFD->getLocation(), DiagMsg)
8162 << Name << NewDC << IsDefinition << NewFD->getLocation();
8180 if (Loc.isInvalid()) Loc = FD->getLocation();
8186 SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_const_match)
8189 SemaRef.Diag(FD->getLocation(),
8486 S.Diag(Param->getLocation(), diag::err_opencl_ptrptr_kernel_param);
8495 S.Diag(Param->getLocation(), diag::err_kernel_arg_address_space);
8512 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT;
8517 SourceLocation Loc = Typedef->getDecl()->getLocation();
8608 S.Diag(Param->getLocation(),
8613 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT;
8616 S.Diag(OrigRecDecl->getLocation(), diag::note_within_field_of_type)
8626 S.Diag(OuterField->getLocation(), diag::note_within_field_of_type)
8630 S.Diag(FD->getLocation(), diag::note_illegal_field_declared_here)
8777 Diag(NewFD->getLocation(), diag::err_destructor_template);
8791 NewFD->getLocation(),
9045 Diag(NewFD->getLocation(), diag::warn_redefine_extname_not_applied)
9142 Diag(NewFD->getLocation(), diag::err_vm_func_decl);
9184 Diag(NewFD->getLocation(),
9219 Diag(NewFD->getLocation(), DiagID)
9325 Diag(NewFD->getLocation(),
9332 Diag(NewFD->getLocation(),
9469 Diag(NewFD->getLocation(), diag::ext_out_of_line_declaration)
9481 Diag(NewFD->getLocation(),
9533 Diag(NewFD->getLocation(), diag::err_config_scalar_return)
9546 Diag(NewFD->getLocation(), diag::err_variadic_device_fn);
9620 Context, CurContext, NewFD->getLocation(),
9631 Diag(attr->getLocation(), diag::warn_availability_on_static_initializer)
9636 Diag(attr->getLocation(), diag::warn_availability_on_static_initializer)
9653 Diag(NBA->getLocation(),
9658 Diag(NBA->getLocation(), diag::err_attribute_no_builtin_on_non_definition)
9807 S.Diag(FD->getLocation(), diag::err_bad_multiversion_option)
9815 S.Diag(FD->getLocation(), diag::err_bad_multiversion_option)
9822 S.Diag(FD->getLocation(), diag::err_bad_multiversion_option)
9880 Diag(OldFD->getLocation(), NoProtoDiagID);
9887 return Diag(NewFD->getLocation(), NoProtoDiagID);
9956 OldFD->getType()->getAs<FunctionProtoType>(), OldFD->getLocation(),
9957 NewFD->getType()->getAs<FunctionProtoType>(), NewFD->getLocation()))
9968 S.Diag(NewFD->getLocation(), diag::err_multiversion_not_supported);
9970 S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
9981 S.Diag(OldFD->getLocation(), diag::err_multiversion_no_other_attrs)
9983 S.Diag(NewFD->getLocation(), diag::note_multiversioning_caused_here);
9988 return S.Diag(NewFD->getLocation(), diag::err_multiversion_no_other_attrs)
9993 return S.Diag(NewFD->getLocation(), diag::err_multiversion_after_used);
9997 PartialDiagnosticAt(NewFD->getLocation(),
9999 PartialDiagnosticAt(NewFD->getLocation(),
10002 PartialDiagnosticAt(NewFD->getLocation(),
10066 S.Diag(NewFD->getLocation(), diag::err_multiversion_not_supported);
10067 S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
10093 S.Diag(NewFD->getLocation(), diag::note_multiversioning_caused_here);
10101 S.Diag(NewFD->getLocation(), diag::err_multiversion_duplicate);
10102 S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
10113 S.Diag(FD->getLocation(), diag::err_multiversion_required_in_redecl)
10115 S.Diag(NewFD->getLocation(), diag::note_multiversioning_caused_here);
10145 S.Diag(NewFD->getLocation(), diag::err_multiversion_types_mixed);
10146 S.Diag(OldFD->getLocation(), diag::note_previous_declaration);
10180 S.Diag(NewFD->getLocation(), diag::err_multiversion_duplicate);
10181 S.Diag(CurFD->getLocation(), diag::note_previous_declaration);
10207 S.Diag(NewFD->getLocation(), diag::err_cpu_dispatch_mismatch);
10208 S.Diag(CurFD->getLocation(), diag::note_previous_declaration);
10231 S.Diag(NewFD->getLocation(), diag::err_cpu_specific_multiple_defs)
10233 S.Diag(CurFD->getLocation(), diag::note_previous_declaration);
10295 S.Diag(NewFD->getLocation(), diag::err_multiversion_types_mixed);
10308 S.Diag(NewFD->getLocation(), diag::err_multiversion_not_allowed_on_main);
10331 S.Diag(NewFD->getLocation(), diag::err_multiversion_required_in_redecl)
10474 Diag(MD->getLocation(), diag::warn_cxx14_compat_constexpr_not_const)
10551 Diag(NewFD->getLocation(),
10553 Diag((*OtherUnmarkedIter)->getLocation(),
10579 Diag(NewFD->getLocation(), diag::err_destructor_name);
10665 Diag(NewFD->getLocation(), diag::warn_return_value_udt_incomplete)
10669 Diag(NewFD->getLocation(), diag::warn_return_value_udt) << NewFD << R;
10703 Diag(NewFD->getLocation(),
10744 Diag(FD->getLocation(), diag::err_opencl_no_main)
10804 Diag(FD->getLocation(), diag::ext_variadic_main);
10816 Diag(FD->getLocation(), diag::err_main_surplus_args) << nparams;
10853 Diag(FD->getLocation(), diag::err_main_arg_wrong) << i << Expected[i];
10860 Diag(FD->getLocation(), diag::warn_main_one_arg);
10864 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD;
10884 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD;
11205 << DRE->getDecl() << OrigDecl->getLocation()
11270 Diag(VDecl->getLocation(), diag::err_auto_var_requires_init)
11289 VDecl->getLocation(), DirectInit, Init);
11484 S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11490 S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11510 S.Diag(RD->getLocation(), diag::note_non_trivial_c_union)
11549 S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11555 S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11575 S.Diag(RD->getLocation(), diag::note_non_trivial_c_union)
11615 S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11621 S.Diag(FD->getLocation(), diag::note_non_trivial_c_union)
11641 S.Diag(RD->getLocation(), diag::note_non_trivial_c_union)
11699 Diag(Method->getLocation(), diag::err_member_function_initialization)
11708 Diag(RealDecl->getLocation(), diag::err_illegal_initializer);
11731 Diag(VDecl->getLocation(), diag::err_attribute_dllimport_data_definition);
11738 Diag(VDecl->getLocation(), diag::err_block_extern_cant_init);
11750 if (RequireCompleteType(VDecl->getLocation(), BaseDeclType,
11757 if (RequireNonAbstractType(VDecl->getLocation(), VDecl->getType(),
11807 Diag(VDecl->getLocation(), diag::err_local_cant_init);
11833 VDecl->getLocation(), DirectInit, Init);
11887 checkUnsafeAssigns(VDecl->getLocation(), VDecl->getType(), Init);
11919 ActOnFinishFullExpr(Init, VDecl->getLocation(),
12000 Diag(VDecl->getLocation(), diag::err_in_class_initializer_non_const)
12011 Diag(VDecl->getLocation(), diag::err_in_class_initializer_volatile);
12037 Diag(VDecl->getLocation(),
12044 Diag(VDecl->getLocation(), diag::ext_in_class_initializer_float_type)
12056 Diag(VDecl->getLocation(), diag::err_in_class_initializer_literal_type)
12062 Diag(VDecl->getLocation(), diag::err_in_class_initializer_bad_type)
12079 Diag(VDecl->getLocation(), diag::warn_extern_init);
12151 if (RequireCompleteType(VD->getLocation(),
12159 if (RequireNonAbstractType(VD->getLocation(), Ty,
12180 Diag(Var->getLocation(), diag::err_decomp_decl_requires_init) << Var;
12202 Diag(Var->getLocation(),
12209 Diag(Var->getLocation(), diag::err_invalid_constexpr_var_decl);
12220 Diag(Var->getLocation(), diag::err_opencl_constant_no_init);
12228 checkNonTrivialCUnion(Var->getType(), Var->getLocation(),
12251 RequireCompleteType(Var->getLocation(), Type,
12257 RequireNonAbstractType(Var->getLocation(), Type,
12263 Diag(Var->getLocation(), diag::warn_private_extern);
12264 Diag(Var->getLocation(), diag::note_private_extern);
12282 if (RequireCompleteType(Var->getLocation(),
12297 RequireCompleteType(Var->getLocation(), Type,
12311 Diag(Var->getLocation(),
12320 Diag(Var->getLocation(), diag::err_reference_var_requires_init)
12322 << SourceRange(Var->getLocation(), Var->getLocation());
12336 if (RequireCompleteType(Var->getLocation(),
12347 if (RequireNonAbstractType(Var->getLocation(), Type,
12396 = InitializationKind::CreateDefault(Var->getLocation());
12419 Diag(D->getLocation(), diag::err_for_range_decl_must_be_var);
12492 Diag(var->getLocation(), diag::err_opencl_invalid_block_declaration)
12532 var->getLocation())) {
12539 Diag(var->getLocation(), diag::warn_missing_variable_declarations) << var;
12560 Diag(var->getLocation(), diag::err_thread_nontrivial_dtor);
12562 Diag(var->getLocation(), diag::note_use_thread_local);
12572 Diag(var->getLocation(), diag::note_use_thread_local);
12636 SourceLocation DiagLoc = var->getLocation();
12664 Diag(var->getLocation(), diag::err_require_constant_init_failed)
12666 Diag(Attr->getLocation(),
12684 var->getLocation())) {
12691 Diag(var->getLocation(), diag::warn_global_constructor)
12809 Diag(VD->getLocation(), diag::err_tls_var_aligned_over_maximum)
12834 if (CUDADiagIfDeviceCode(VD->getLocation(),
12865 Diag(VD->getLocation(),
12869 Diag(IA->getLocation(), diag::note_attribute);
12885 Diag(VD->getLocation(), diag::err_attribute_dll_thread_local) << VD
12893 Diag(Attr->getLocation(), diag::warn_attribute_ignored) << Attr;
12976 Diag(FirstDecompDeclaratorInGroup->getLocation(),
12987 Diag(FirstNonDeducedAutoInGroup->getLocation(),
13065 Group[0]->getLocation()) &&
13067 Group[0]->getLocation()))
13189 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
13222 Diag(New->getLocation(), diag::err_module_private_local)
13228 Diag(New->getLocation(), diag::err_block_on_nonlocal);
13261 Diag(Parameter->getLocation(), diag::warn_unused_parameter)
13277 Diag(D->getLocation(), diag::warn_return_value_size)
13289 Diag(Parameter->getLocation(), diag::warn_parameter_size)
13338 checkNonTrivialCUnion(New->getType(), New->getLocation(),
13578 Diag(FD->getLocation(), diag::err_redefinition_extern_inline)
13581 Diag(FD->getLocation(), diag::err_redefinition) << FD->getDeclName();
13583 Diag(Definition->getLocation(), diag::note_previous_definition);
13619 /*RefersToEnclosingVariableOrCapture*/true, C.getLocation(),
13625 LSI->addThisCapture(/*Nested*/ false, C.getLocation(), I->getType(),
13628 LSI->addVLATypeCapture(C.getLocation(), I->getCapturedVLAType(),
13659 Diag(Attr->getLocation(), diag::err_alias_is_definition) << FD << 0;
13664 Diag(Attr->getLocation(), diag::err_alias_is_definition) << FD << 1;
13707 Diag(FD->getLocation(), diag::err_builtin_definition) << FD;
13717 RequireCompleteType(FD->getLocation(), ResultType,
13765 ResolveExceptionSpec(D->getLocation(), FPT);
13771 Diag(FD->getLocation(), diag::err_attribute_dllimport_function_definition);
13781 Diag(FD->getLocation(), diag::warn_function_def_in_objc_container);
13935 Diag(dcl->getLocation(), diag::err_auto_fn_no_return_but_not_auto)
13973 Diag(FD->getLocation(), diag::ext_pure_function_definition);
13984 MarkVTableUsed(FD->getLocation(), Constructor->getParent());
13986 MarkVTableUsed(FD->getLocation(), Destructor->getParent());
14003 Diag(FD->getLocation(), diag::warn_missing_prototype) << FD;
14011 Diag(PossiblePrototype->getLocation(),
14066 MarkVTableUsed(Definition->getLocation(), MD->getParent(), true);
14069 MarkVTableUsed(FD->getLocation(), MD->getParent(), true);
14111 Diag(MD->getLocation(),
14113 Diag(InitMethod->getLocation(),
14121 Diag(MD->getLocation(),
14158 MarkBaseAndMemberDestructorsReferenced(Destructor->getLocation(),
14199 Diag(FD->getAttr<NakedAttr>()->getLocation(), diag::note_attribute);
14279 Diag(ExternCPrev->getLocation(), diag::note_previous_declaration);
14386 FD->getLocation()));
14396 FD->getLocation()));
14404 Context, Encoding.data(), Encoding.size(), FD->getLocation()));
14411 FD->addAttr(ConstAttr::CreateImplicit(Context, FD->getLocation()));
14426 FD->addAttr(ConstAttr::CreateImplicit(Context, FD->getLocation()));
14436 FD->getLocation()));
14438 FD->addAttr(NoThrowAttr::CreateImplicit(Context, FD->getLocation()));
14440 FD->addAttr(PureAttr::CreateImplicit(Context, FD->getLocation()));
14442 FD->addAttr(ConstAttr::CreateImplicit(Context, FD->getLocation()));
14450 FD->addAttr(CUDADeviceAttr::CreateImplicit(Context, FD->getLocation()));
14452 FD->addAttr(CUDAHostAttr::CreateImplicit(Context, FD->getLocation()));
14463 FD->addAttr(NoThrowAttr::CreateImplicit(Context, FD->getLocation()));
14486 FD->getLocation()));
14494 FD->getLocation()));
14521 Diag(NewTD->getLocation(), diag::err_module_private_local)
14577 Diag(Prev->getLocation(), diag::note_previous_declaration);
14589 Diag(Prev->getLocation(), diag::note_previous_declaration)
14596 Diag(Prev->getLocation(), diag::note_previous_declaration);
14695 return IsIgnoredLoc(Tag->getLocation());
14761 Diag(Redecl->getLocation(), diag::note_previous_use);
15279 Diag(Shadow->getTargetDecl()->getLocation(),
15281 Diag(Shadow->getUsingDecl()->getLocation(), diag::note_using_decl)
15311 Diag(PrevTagDecl->getLocation(), diag::note_previous_use);
15358 Diag(PrevTagDecl->getLocation(), diag::note_previous_declaration);
15457 Diag(PrevTagDecl->getLocation(),
15503 Diag(PrevDecl->getLocation(), diag::note_declared_at);
15515 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl;
15525 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl;
15580 Diag(Def->getLocation(), diag::note_previous_definition);
15621 Diag(New->getLocation(), diag::err_type_defined_in_type_specifier)
15628 Diag(New->getLocation(), diag::err_type_defined_in_enum)
15670 Diag(New->getLocation(), diag::err_module_private_specialization)
15842 Record->getLocation(), Record->getIdentifier(),
16273 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
16296 Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ?
16366 SourceLocation Loc = FD->getLocation();
16375 Diag(FD->getLocation(), getLangOpts().CPlusPlus11 ?
16481 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
16623 Diag(FD->getLocation(), diag::err_field_declared_as_function)
16637 Diag(FD->getLocation(), diag::err_flexible_array_not_at_end)
16639 Diag((*(i + 1))->getLocation(), diag::note_next_field_declaration);
16657 Diag(FD->getLocation(), DiagID) << FD->getDeclName()
16665 Diag(FD->getLocation(), diag::err_flexible_array_virtual_base)
16668 Diag(FD->getLocation(), diag::ext_c99_flexible_array_member)
16678 Diag(FD->getLocation(), diag::err_flexible_array_has_nontrivial_dtor)
16692 RequireCompleteType(FD->getLocation(), FD->getType(),
16708 Diag(FD->getLocation(), diag::ext_variable_sized_type_in_struct)
16713 Diag(FD->getLocation(), diag::ext_flexible_array_in_struct)
16719 RequireNonAbstractType(FD->getLocation(), FD->getType(),
16731 Diag(FD->getLocation(), diag::err_statically_allocated_object)
16732 << FixItHint::CreateInsertion(FD->getLocation(), "*");
16737 getSourceManager().isInSystemHeader(FD->getLocation()) &&
16749 FD->getLocation()));
16843 Diag(Record->getLocation(), diag::err_multiple_final_overriders)
16845 Diag(M->first->getLocation(),
16851 Diag(OM->Method->getLocation(), diag::note_final_overrider)
16876 SetDeclDeleted(Dtor, CXXRecord->getLocation());
16978 Diag(ClsFields[i]->getLocation(),
16980 Diag(ClsIvar->getLocation(), diag::note_previous_definition);
16986 Diag(ClsFields[i]->getLocation(),
16988 Diag(ClsExtIvar->getLocation(), diag::note_previous_definition);
17371 if (S.Diags.isIgnored(diag::warn_duplicate_enum_values, Enum->getLocation()))
17456 S.Diag(FirstECD->getLocation(), diag::warn_duplicate_enum_values)
17463 S.Diag(ECD->getLocation(), diag::note_duplicate_element)
17609 Diag(Enum->getLocation(), diag::ext_enum_too_large);
17724 Diag(ECD->getLocation(), diag::warn_flag_enum_constant_out_of_range)
17766 Diag(PrevDecl->getLocation(), diag::warn_redefine_extname_not_applied)