Home | History | Annotate | Download | only in Sema

Lines Matching full:getlocation

345             (*Res)->getLocation().getRawEncoding() <
346 IIDecl->getLocation().getRawEncoding())
569 Diag(TplDecl->getLocation(), diag::note_template_decl_here)
655 SemaRef.Diag((*I)->getLocation(), diag::note_decl_hiding_tag_type)
693 BuildCXXNestedNameSpecifier(S, *Name, NameLoc, NextToken.getLocation(),
1335 if (FD->isInlined() && !isMainFileLoc(*this, FD->getLocation()))
1346 if (!isMainFileLoc(*this, VD->getLocation()))
1478 Diag(D->getLocation(), DiagID) << D->getDeclName() << Hint;
1486 S.Diag(L->getLocation(), diag::err_undeclared_label_use) <<L->getDeclName();
1741 Diag(New->getLocation(), diag::err_redefinition_variably_modified_typedef)
1743 if (Old->getLocation().isValid())
1744 Diag(Old->getLocation(), diag::note_previous_definition);
1754 Diag(New->getLocation(), diag::err_redefinition_different_typedef)
1756 if (Old->getLocation().isValid())
1757 Diag(Old->getLocation(), diag::note_previous_definition);
1818 Diag(New->getLocation(), diag::err_redefinition_different_kind)
1822 if (OldD->getLocation().isValid())
1823 Diag(OldD->getLocation(), diag::note_previous_definition);
1879 Diag(New->getLocation(), diag::err_redefinition)
1881 Diag(Old->getLocation(), diag::note_previous_definition);
1894 (Context.getSourceManager().isInSystemHeader(Old->getLocation()) ||
1895 Context.getSourceManager().isInSystemHeader(New->getLocation())))
1898 Diag(New->getLocation(), diag::warn_redefinition_of_typedef)
1900 Diag(Old->getLocation(), diag::note_previous_definition);
2000 S.Diag(NewAlignasAttr->getLocation(), diag::err_alignas_mismatch)
2003 S.Diag(OldAlignasAttr->getLocation(), diag::note_previous_declaration);
2016 S.Diag(New->getLocation(), diag::err_alignas_missing_on_definition)
2018 S.Diag(OldAlignasAttr->getLocation(), diag::note_alignas_on_declaration)
2140 S.Diag(VD->getLocation(), Diag) << VD->getDeclName();
2141 S.Diag(Def->getLocation(), diag::note_previous_definition);
2175 S.Diag(Def->getLocation(), diag::err_alignas_missing_on_definition)
2177 S.Diag(NewAttribute->getLocation(), diag::note_alignas_on_declaration)
2185 S.Diag(NewAttribute->getLocation(),
2187 S.Diag(Def->getLocation(), diag::note_previous_definition);
2261 S.Diag(CDA->getLocation(),
2269 S.Diag(FirstVD->getLocation(),
2335 SourceLocation OldLocation = Old->getLocation();
2341 OldLocation = New->getLocation();
2397 Diag(New->getLocation(), diag::err_using_decl_friend);
2398 Diag(Shadow->getTargetDecl()->getLocation(),
2400 Diag(Shadow->getUsingDecl()->getLocation(),
2420 Diag(New->getLocation(), diag::err_using_decl_conflict_reverse);
2421 Diag(Shadow->getTargetDecl()->getLocation(),
2423 Diag(Shadow->getUsingDecl()->getLocation(), diag::note_using_decl) << 0;
2428 Diag(New->getLocation(), diag::err_redefinition_different_kind)
2430 Diag(OldD->getLocation(), diag::note_previous_definition);
2454 Diag(New->getLocation(), diag::ext_static_non_static) << New;
2457 Diag(New->getLocation(), diag::err_static_non_static) << New;
2499 Diag(New->getLocation(), diag::err_cconv_change)
2506 Diag(First->getLocation(), diag::note_previous_declaration);
2521 Diag(New->getLocation(), diag::err_regparm_mismatch)
2535 Diag(New->getLocation(), diag::err_returns_retained_mismatch);
2597 Diag(New->getLocation(), diag::err_member_def_does_not_match_ret_type)
2600 Diag(New->getLocation(), diag::err_ovl_diff_return_type)
2648 Diag(New->getLocation(), diag::err_ovl_static_nonstatic_member);
2668 Diag(New->getLocation(), NewDiag);
2670 Diag(New->getLocation(), diag::err_member_redeclared_in_instantiation)
2684 Diag(NewMethod->getLocation(),
2690 Diag(NewMethod->getLocation(),
2703 Diag(NRA->getLocation(), diag::err_noreturn_missing_on_first_decl);
2704 Diag(Old->getFirstDecl()->getLocation(),
2714 Diag(CDA->getLocation(),
2716 Diag(Old->getFirstDecl()->getLocation(),
2745 Diag(New->getLocation(), diag::ext_retained_language_linkage) << New;
2748 Diag(New->getLocation(), diag::err_different_language_linkage) << New;
2851 Diag(Warnings[Warn].NewParm->getLocation(),
2855 if (Warnings[Warn].OldParm->getLocation().isValid())
2856 Diag(Warnings[Warn].OldParm->getLocation(),
2879 Diag(New->getLocation(), diag::warn_redecl_library_builtin) << New;
2900 Diag(New->getLocation(), diag::err_conflicting_types) << New->getDeclName();
3044 Diag(New->getLocation(), diag::err_redefinition_different_type)
3046 Diag(Old->getLocation(), diag::note_previous_definition);
3111 Diag(New->getLocation(), diag::err_redefinition_different_kind)
3113 Diag(Previous.getRepresentativeDecl()->getLocation(),
3133 Diag(New->getLocation(), diag::err_duplicate_member)
3135 Diag(Old->getLocation(), diag::note_previous_declaration);
3145 Diag(New->getLocation(), diag::warn_weak_import) << New->getDeclName();
3146 Diag(Old->getLocation(), diag::note_previous_definition);
3167 Diag(New->getLocation(), diag::ext_static_non_static)
3171 Diag(New->getLocation(), diag::err_static_non_static)
3191 Diag(New->getLocation(), diag::err_non_static_static) << New->getDeclName();
3199 Diag(New->getLocation(), diag::err_extern_non_extern) << New->getDeclName();
3205 Diag(New->getLocation(), diag::err_non_extern_extern) << New->getDeclName();
3218 Diag(New->getLocation(), diag::err_redefinition) << New->getDeclName();
3225 Diag(New->getLocation(), diag::err_thread_non_thread) << New->getDeclName();
3228 Diag(New->getLocation(), diag::err_non_thread_thread) << New->getDeclName();
3235 Diag(New->getLocation(), diag::err_thread_thread_different_kind)
3246 Diag(New->getLocation(), diag::err_redefinition) << New;
3247 Diag(Def->getLocation(), diag::note_previous_definition);
3253 Diag(New->getLocation(), diag::err_different_language_linkage) << New;
3561 SemaRef.Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
3600 VD->getLocation(), diagKind)) {
3626 IndirectFieldDecl::Create(SemaRef.Context, Owner, VD->getLocation(),
3678 return FD->getLocation();
3713 Diag(Record->getLocation(), diag::ext_anonymous_union);
3715 Diag(Record->getLocation(), diag::ext_gnu_anonymous_struct);
3717 Diag(Record->getLocation(), diag::ext_c11_anonymous_struct);
3733 Diag(Record->getLocation(), diag::err_anonymous_union_not_static)
3734 << FixItHint::CreateInsertion(Record->getLocation(), "static ");
3792 Diag(FD->getLocation(), diag::err_anonymous_record_nonpublic_member)
3816 Diag(MemRecord->getLocation(), diag::ext_anonymous_record_with_type)
3820 Diag(MemRecord->getLocation(), diag::err_anonymous_record_with_type)
3828 Diag(MemRecord->getLocation(),
3850 Diag(Mem->getLocation(), diag::ext_anonymous_record_with_type)
3853 Diag(Mem->getLocation(), DK)
3870 Diag(Record->getLocation(), diag::err_anonymous_struct_not_member)
3885 Record->getLocation(),
3900 Diag(Record->getLocation(), diag::err_mutable_nonmember);
3907 Record->getLocation(), /*IdentifierInfo=*/nullptr,
4809 Diag(NewTD->getLocation(), diag::warn_illegal_constant_array_size);
4813 Diag(NewTD->getLocation(), diag::err_typecheck_negative_array_size);
4815 Diag(NewTD->getLocation(), diag::err_vla_decl_in_file_scope);
4817 Diag(NewTD->getLocation(), diag::err_array_too_large)
4820 Diag(NewTD->getLocation(), diag::err_vm_decl_in_file_scope);
4943 Diag(decl->getLocation(), diag::err_arc_autoreleasing_var)
4960 Diag(var->getLocation(), diag::err_arc_thread_ownership)
4977 S.Diag(Attr->getLocation(), diag::err_attribute_weak_static);
4983 S.Diag(Attr->getLocation(), diag::err_attribute_weakref_not_static);
4992 S.Diag(Attr->getLocation(), diag::err_attribute_selectany_non_extern_data);
5000 S.Diag(ND.getLocation(), diag::err_attribute_dll_not_extern)
5007 S.Diag(ND.getLocation(), diag::err_attribute_dll_not_extern)
5041 S.Diag(NewDecl->getLocation(), diag::err_attribute_dll_redeclaration)
5044 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
5061 S.Diag(NewDecl->getLocation(),
5064 S.Diag(OldDecl->getLocation(), diag::note_previous_declaration);
5065 S.Diag(OldImportAttr->getLocation(), diag::note_previous_attribute);
5532 Diag(NewVD->getLocation(), diag::err_module_private_specialization)
5537 Diag(NewVD->getLocation(), diag::err_module_private_specialization)
5541 Diag(NewVD->getLocation(), diag::err_module_private_local)
5655 Diag(NewVD->getLocation(), diag::err_nonstatic_member_out_of_line)
5812 Diag(ShadowedDecl->getLocation(), diag::note_previous_declaration);
5817 if (Diags.isIgnored(diag::warn_decl_shadow, D->getLocation()))
5820 LookupResult R(*this, D->getDeclName(), D->getLocation(),
5896 S.Diag(ND->getLocation(), diag::err_extern_c_global_conflict)
5898 S.Diag(Prev->getLocation(), diag::note_extern_c_global_conflict)
5959 Diag(NewVD->getLocation(), diag::err_statically_allocated_object)
5960 << FixItHint::CreateInsertion(NewVD->getLocation(), "*");
5970 Diag(NewVD->getLocation(), diag::err_as_qualified_auto_decl);
5980 Diag(NewVD->getLocation(), diag::err_opencl_global_invalid_addr_space);
5989 Diag(NewVD->getLocation(), diag::err_static_function_scope);
5997 Diag(NewVD->getLocation(), diag::warn_gc_attribute_weak_on_local);
6000 Diag(NewVD->getLocation(), diag::warn_attribute_weak_on_local);
6023 Diag(NewVD->getLocation(), diag::err_vla_decl_in_file_scope)
6026 Diag(NewVD->getLocation(), diag::err_vla_decl_has_static_storage)
6029 Diag(NewVD->getLocation(), diag::err_vla_decl_has_extern_linkage)
6037 Diag(NewVD->getLocation(), diag::err_vm_decl_in_file_scope);
6039 Diag(NewVD->getLocation(), diag::err_vm_decl_has_extern_linkage);
6044 Diag(NewVD->getLocation(), diag::warn_illegal_constant_array_size);
6053 Diag(NewVD->getLocation(), diag::err_typecheck_decl_incomplete_type)
6061 Diag(NewVD->getLocation(), diag::err_block_on_nonlocal);
6067 Diag(NewVD->getLocation(), diag::err_block_on_vm);
6073 RequireLiteralType(NewVD->getLocation(), T,
6167 S.Diag(MD->getLocation(), DiagID) << MD->getDeclName();
6177 S.Diag((*I)->getLocation(), diag::note_overridden_virtual_function);
6293 LookupResult Prev(SemaRef, Name, NewFD->getLocation(),
6387 SemaRef.Diag(NewFD->getLocation(), DiagMsg)
6388 << Name << NewDC << IsDefinition << NewFD->getLocation();
6406 if (Loc.isInvalid()) Loc = FD->getLocation();
6412 SemaRef.Diag(FD->getLocation(), diag::note_member_def_close_const_match)
6415 SemaRef.Diag(FD->getLocation(),
6654 S.Diag(Param->getLocation(), diag::err_opencl_ptrptr_kernel_param);
6662 S.Diag(Param->getLocation(), diag::err_opencl_private_ptr_kernel_param);
6676 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT;
6747 S.Diag(Param->getLocation(),
6752 S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT;
6755 S.Diag(PD->getLocation(), diag::note_within_field_of_type)
6763 getLocation(), diag::note_within_field_of_type)
6767 S.Diag(FD->getLocation(), diag::note_illegal_field_declared_here)
6876 Diag(NewFD->getLocation(), diag::err_destructor_template);
6891 NewFD->getLocation(),
7207 Diag(NewFD->getLocation(), diag::err_vm_func_decl);
7245 Diag(NewFD->getLocation(),
7343 Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ?
7360 Diag(NewFD->getLocation(),
7367 Diag(NewFD->getLocation(),
7500 Diag(NewFD->getLocation(), diag::ext_out_of_line_declaration)
7512 Diag(NewFD->getLocation(),
7594 Diag(NewFD->getLocation(), diag::err_config_scalar_return);
7682 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing)
7690 Diag(OverloadedDecl->getLocation(),
7711 Diag(NewFD->getLocation(), diag::err_attribute_overloadable_missing)
7713 Diag(Previous.getFoundDecl()->getLocation(),
7757 Diag(MD->getLocation(), diag::warn_cxx1y_compat_constexpr_not_const)
7840 Diag(NewFD->getLocation(), diag::err_destructor_name);
7907 Diag(NewFD->getLocation(), diag::warn_return_value_udt_incomplete)
7911 Diag(NewFD->getLocation(), diag::warn_return_value_udt) << NewFD << R;
7946 Diag(FD->getLocation(), diag::err_opencl_no_main)
8005 Diag(FD->getLocation(), diag::err_main_surplus_args) << nparams;
8042 Diag(FD->getLocation(), diag::err_main_arg_wrong) << i << Expected[i];
8049 Diag(FD->getLocation(), diag::warn_main_one_arg);
8053 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD;
8073 Diag(FD->getLocation(), diag::err_mainlike_template_decl) << FD;
8230 << OrigDecl->getLocation()
8277 Diag(Method->getLocation(), diag::err_member_function_initialization)
8287 Diag(RealDecl->getLocation(), diag::err_illegal_initializer);
8384 Diag(VDecl->getLocation(), diag::err_attribute_dllimport_data_definition);
8391 Diag(VDecl->getLocation(), diag::err_block_extern_cant_init);
8403 if (RequireCompleteType(VDecl->getLocation(), BaseDeclType,
8410 if (RequireNonAbstractType(VDecl->getLocation(), VDecl->getType(),
8418 Diag(VDecl->getLocation(), diag::err_redefinition)
8420 Diag(Def->getLocation(), diag::note_previous_definition);
8458 Diag(VDecl->getLocation(), diag::err_local_cant_init);
8484 CXXDirectInit ? InitializationKind::CreateDirect(VDecl->getLocation(),
8488 VDecl->getLocation())
8489 : InitializationKind::CreateCopy(VDecl->getLocation(),
8523 checkUnsafeAssigns(VDecl->getLocation(), VDecl->getType(), Init);
8552 ExprResult Result = ActOnFinishFullExpr(Init, VDecl->getLocation(),
8616 Diag(VDecl->getLocation(), diag::err_in_class_initializer_non_const)
8627 Diag(VDecl->getLocation(), diag::err_in_class_initializer_volatile);
8650 Diag(VDecl->getLocation(),
8657 Diag(VDecl->getLocation(), diag::ext_in_class_initializer_float_type)
8669 Diag(VDecl->getLocation(), diag::err_in_class_initializer_literal_type)
8675 Diag(VDecl->getLocation(), diag::err_in_class_initializer_bad_type)
8685 Diag(VDecl->getLocation(), diag::warn_extern_init);
8738 if (RequireCompleteType(VD->getLocation(),
8746 if (RequireNonAbstractType(VD->getLocation(), Ty,
8768 Diag(Var->getLocation(), diag::err_auto_var_requires_init)
8782 Diag(Var->getLocation(),
8786 Diag(Var->getLocation(), diag::err_invalid_constexpr_var_decl);
8796 Diag(Var->getLocation(), diag::err_opencl_constant_no_init);
8820 RequireCompleteType(Var->getLocation(), Type,
8826 RequireNonAbstractType(Var->getLocation(), Type,
8832 Diag(Var->getLocation(), diag::warn_private_extern);
8833 Diag(Var->getLocation(), diag::note_private_extern);
8847 if (RequireCompleteType(Var->getLocation(),
8862 RequireCompleteType(Var->getLocation(), Type,
8876 Diag(Var->getLocation(),
8885 Diag(Var->getLocation(), diag::err_reference_var_requires_init)
8887 << SourceRange(Var->getLocation(), Var->getLocation());
8901 if (RequireCompleteType(Var->getLocation(),
8910 if (RequireNonAbstractType(Var->getLocation(), Type,
8955 = InitializationKind::CreateDefault(Var->getLocation());
8974 Diag(D->getLocation(), diag::err_for_range_decl_must_be_var);
9073 var->getLocation())) {
9080 Diag(var->getLocation(), diag::warn_missing_variable_declarations) << var;
9089 Diag(var->getLocation(), diag::err_thread_nontrivial_dtor);
9091 Diag(var->getLocation(), diag::note_use_thread_local);
9102 Diag(var->getLocation(), diag::note_use_thread_local);
9145 SourceLocation poi = var->getLocation();
9167 var->getLocation())) {
9174 Diag(var->getLocation(), diag::warn_global_constructor)
9181 getLocation();
9244 Diag(VD->getLocation(),
9248 Diag(IA->getLocation(), diag::note_attribute);
9256 Diag(Attr->getLocation(), diag::warn_attribute_ignored) << Attr;
9265 Diag(VD->getLocation(), diag::err_tentative_after_alias)
9267 Diag(Def->getLocation(), diag::note_previous_definition);
9404 if (Diags.isIgnored(diag::warn_doc_param_not_found, Group[0]->getLocation()))
9507 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
9542 Diag(New->getLocation(), diag::err_module_private_local)
9548 Diag(New->getLocation(), diag::err_block_on_nonlocal);
9578 Diag((*Param)->getLocation(), diag::warn_unused_parameter)
9596 Diag(D->getLocation(), diag::warn_return_value_size)
9608 Diag((*Param)->getLocation(), diag::warn_parameter_size)
9796 Diag(FD->getLocation(), diag::err_redefinition_extern_inline)
9799 Diag(FD->getLocation(), diag::err_redefinition) << FD->getDeclName();
9801 Diag(Definition->getLocation(), diag::note_previous_definition);
9837 /*RefersToEnclosingLocal*/true, C.getLocation(),
9843 LSI->addThisCapture(/*Nested*/ false, C.getLocation(),
9888 Diag(FD->getLocation(), diag::err_builtin_definition) << FD;
9898 RequireCompleteType(FD->getLocation(), ResultType,
9909 Diag(FD->getLocation(), diag::warn_missing_prototype) << FD;
9918 Diag(PossibleZeroParamPrototype->getLocation(),
9984 ResolveExceptionSpec(D->getLocation(), FPT);
9990 Diag(FD->getLocation(), diag::err_attribute_dllimport_function_definition);
10000 Diag(FD->getLocation(), diag::warn_function_def_in_objc_container);
10092 Diag(dcl->getLocation(), diag::err_auto_fn_no_return_but_not_auto)
10124 Diag(FD->getLocation(), diag::warn_pure_function_definition);
10135 MarkVTableUsed(FD->getLocation(), Constructor->getParent());
10183 Diag(MD->getLocation(),
10185 Diag(InitMethod->getLocation(),
10193 Diag(MD->getLocation(), diag::warn_objc_secondary_init_missing_init_call);
10221 MarkBaseAndMemberDestructorsReferenced(Destructor->getLocation(),
10290 Diag(ExternCPrev->getLocation(), diag::note_previous_declaration);
10396 FD->getLocation()));
10406 FD->getLocation()));
10415 FD->addAttr(ConstAttr::CreateImplicit(Context, FD->getLocation()));
10421 getLocation()));
10423 FD->addAttr(NoThrowAttr::CreateImplicit(Context, FD->getLocation()));
10425 FD->addAttr(ConstAttr::CreateImplicit(Context, FD->getLocation()));
10448 FD->getLocation()));
10456 FD->getLocation()));
10485 Diag(NewTD->getLocation(), diag::err_module_private_local)
10578 Diag(Prev->getLocation(), diag::note_previous_declaration);
10590 Diag(Prev->getLocation(), diag::note_previous_declaration)
10597 Diag(Prev->getLocation(), diag::note_previous_declaration);
10706 Diag(Redecl->getLocation(), diag::note_previous_use);
11084 Diag(PrevTagDecl->getLocation(), diag::note_previous_use);
11130 Diag(PrevTagDecl->getLocation(), diag::note_previous_declaration);
11172 Diag(Def->getLocation(), diag::note_previous_definition);
11187 Diag(PrevTagDecl->getLocation(),
11236 Diag(PrevDecl->getLocation(), diag::note_declared_at);
11251 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl;
11261 Diag(PrevDecl->getLocation(), diag::note_previous_decl) << PrevDecl;
11269 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
11314 Diag(Def->getLocation(), diag::note_previous_definition);
11360 Diag(New->getLocation(), diag::err_type_defined_in_type_specifier)
11407 Diag(New->getLocation(), diag::err_module_private_specialization)
11555 Record->getLocStart(), Record->getLocation(),
11943 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
11966 Diag(NewFD->getLocation(), getLangOpts().MicrosoftExt ?
12036 SourceLocation Loc = FD->getLocation();
12046 Diag(FD->getLocation(), getLangOpts().CPlusPlus11 ?
12152 Diag(PrevDecl->getLocation(), diag::note_previous_declaration);
12292 Diag(FD->getLocation(), diag::err_field_declared_as_function)
12323 Diag(FD->getLocation(), DiagID) << FD->getDeclName()
12332 Diag(FD->getLocation(), diag::err_flexible_array_virtual_base)
12335 Diag(FD->getLocation(), diag::ext_c99_flexible_array_member)
12345 Diag(FD->getLocation(), diag::err_flexible_array_has_nontrivial_dtor)
12355 RequireCompleteType(FD->getLocation(), FD->getType(),
12371 Diag(FD->getLocation(), diag::ext_variable_sized_type_in_struct)
12376 Diag(FD->getLocation(), diag::ext_flexible_array_in_struct)
12384 RequireNonAbstractType(FD->getLocation(), FD->getType(),
12396 Diag(FD->getLocation(), diag::err_statically_allocated_object)
12397 << FixItHint::CreateInsertion(FD->getLocation(), "*");
12410 SourceLocation loc = FD->getLocation();
12418 Diag(FD->getLocation(), diag::err_arc_objc_object_in_tag)
12490 Diag(Record->getLocation(), diag::err_multiple_final_overriders)
12492 Diag(M->first->getLocation(),
12498 Diag(OM->Method->getLocation(), diag::note_final_overrider)
12612 Diag(ClsFields[i]->getLocation(),
12614 Diag(ClsIvar->getLocation(), diag::note_previous_definition);
12620 Diag(ClsFields[i]->getLocation(),
12622 Diag(ClsExtIvar->getLocation(), diag::note_previous_definition);
12885 Diag(PrevDecl->getLocation(), diag::note_previous_definition);
12988 if (S.Diags.isIgnored(diag::warn_duplicate_enum_values, Enum->getLocation()))
13078 S.Diag((*I)->getLocation(), diag::warn_duplicate_enum_values)
13086 S.Diag((*I)->getLocation(), diag::note_duplicate_element)
13206 Diag(Enum->getLocation(), diag::ext_enum_too_large);