Lines Matching defs:NameLoc

154                                 SourceLocation NameLoc,
192 switch (lookupUnqualifiedTypeNameInBase(S, II, NameLoc, BaseRD)) {
210 SourceLocation NameLoc) {
222 FoundTypeDecl = lookupUnqualifiedTypeNameInBase(S, II, NameLoc, RD);
230 S.Diag(NameLoc, diag::ext_found_in_dependent_base) << &II;
239 SS.MakeTrivial(Context, NNS, SourceRange(NameLoc));
243 DepTL.setNameLoc(NameLoc);
251 SourceLocation NameLoc,
281 Builder.pushTypeSpec(T).setNameLoc(NameLoc);
288 ParsedType Sema::getTypeName(const IdentifierInfo &II, SourceLocation NameLoc,
340 return ActOnTypenameType(S, SourceLocation(), *SS, II, NameLoc,
348 SourceLocation(), QualifierLoc, II, NameLoc);
367 LookupResult Result(*this, &II, NameLoc, Kind);
392 recoverFromTypeInKnownDependentBase(*this, II, NameLoc))
410 TemplateName.setIdentifier(NewII, NameLoc);
414 NewSS.MakeTrivial(Context, NNS, SourceRange(NameLoc));
424 ParsedType Ty = getTypeName(*NewII, NameLoc, S, NewSSPtr,
434 SS->MakeTrivial(Context, NNS, SourceRange(NameLoc));
450 TL.setNameLoc(NameLoc);
521 Diag(NameLoc, diag::err_out_of_line_qualified_id_type_names_constructor)
524 DiagnoseUseOfDecl(IIDecl, NameLoc);
529 (void)DiagnoseUseOfDecl(IDecl, NameLoc);
534 (void)DiagnoseUseOfDecl(UD, NameLoc);
559 return buildNamedType(*this, SS, T, NameLoc, WantNontrivialTypeSourceInfo);
595 SourceLocation NameLoc,
609 Diag(NameLoc, diag::ext_ms_delayed_template_argument) << &II;
619 Diag(NameLoc, diag::ext_undeclared_unqual_id_with_dependent_base) << &II
632 NNSLocBuilder.MakeTrivial(Context, NNS, SourceRange(NameLoc));
637 DepTL.setNameLoc(NameLoc);
816 SourceLocation NameLoc) {
817 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupTagName);
844 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag)
846 << FixItHint::CreateInsertion(NameLoc, FixItTagName);
864 SourceLocation NameLoc,
867 DeclarationNameInfo NameInfo(Name, NameLoc);
881 LookupResult Result(*this, Name, NameLoc, LookupOrdinaryName);
892 recoverFromTypeInKnownDependentBase(*this, *Name, NameLoc))
941 if (NamedDecl *D = ImplicitlyDefineFunction(NameLoc, *Name, S))
960 isTagTypeWithMissingTag(*this, Result, S, SS, Name, NameLoc)) {
1149 return buildNamedType(*this, &SS, T, NameLoc);
1154 DiagnoseUseOfDecl(Type, NameLoc);
1168 DiagnoseUseOfDecl(Class, NameLoc);
1190 (void)DiagnoseUseOfDecl(EmptyD, NameLoc);
1206 isTagTypeWithMissingTag(*this, Result, S, SS, Name, NameLoc)) {
1208 DiagnoseUseOfDecl(Type, NameLoc);
1231 SourceLocation NameLoc) {
1234 LookupResult Result(*this, Name, NameLoc, LookupOrdinaryName);
1241 SourceLocation NameLoc,
1243 DeclarationNameInfo NameInfo(Name, NameLoc);
1251 SourceLocation NameLoc,
1255 return ObjC().BuildIvarRefExpr(S, NameLoc, Ivar);
1258 LookupResult Result(*this, Found->getDeclName(), NameLoc, LookupOrdinaryName);
5315 SourceLocation NameLoc, bool IsUnion,
5317 LookupResult R(SemaRef, Name, NameLoc,
5334 SemaRef.DiagPlaceholderVariableDefinition(NameLoc);
5338 SemaRef.Diag(NameLoc, diag::err_anonymous_record_member_redecl)
15214 SourceLocation NameLoc,
15232 NameLoc, diag::err_arc_array_param_no_ownership, T, false));
15234 Diag(NameLoc, diag::err_arc_array_param_no_ownership)
15244 ParmVarDecl *New = ParmVarDecl::Create(Context, DC, StartLoc, NameLoc, Name,
15265 Diag(NameLoc,
15285 Diag(NameLoc, diag::err_arg_with_address_space);
17109 SourceLocation NameLoc) {
17124 S, II, NameLoc, Sema::LookupNestedNameSpecifierName);
17138 return FixItHint::CreateInsertion(NameLoc, Insertion);
17164 CXXScopeSpec &SS, IdentifierInfo *Name, SourceLocation NameLoc,
17193 KWLoc, NameLoc, SS, nullptr, TemplateParameterLists,
17229 S, TagSpec, TUK, KWLoc, SS, Name, NameLoc, Attrs, TemplateParams,
17320 SourceLocation Loc = NameLoc.isValid() ? NameLoc : KWLoc;
17365 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl);
17416 Diag(NameLoc, diag::err_not_tag_in_scope)
17428 DiagnoseClassNameShadow(SearchDC, DeclarationNameInfo(Name, NameLoc)))
17486 Diag(NameLoc, diag::ext_friend_tag_redecl_outside_namespace)
17487 << createFriendTagNNSFixIt(*this, ND, S, NameLoc);
17519 DiagnoseTemplateParameterShadow(NameLoc, Previous.getFoundDecl());
17718 if (CheckEnumRedeclaration(NameLoc.isValid() ? NameLoc : KWLoc,
17730 Diag(NameLoc, diag::ext_member_redeclared);
17812 Diag(NameLoc, diag::warn_redefinition_in_param_list) << Name;
17814 Diag(NameLoc, diag::err_redefinition) << Name;
17816 NameLoc.isValid() ? NameLoc : KWLoc);
17829 Diag(NameLoc, diag::err_nested_redefinition) << Name;
17874 Diag(NameLoc, diag::err_tag_reference_non_tag)
17887 Diag(NameLoc, diag::err_tag_reference_conflict) << NTK;
17896 Diag(NameLoc, diag::err_tag_definition_of_typedef)
17905 Diag(NameLoc, diag::err_redefinition_different_kind) << Name;
17906 notePreviousDefinition(PrevDecl, NameLoc);
17926 SourceLocation Loc = NameLoc.isValid() ? NameLoc : KWLoc;
20258 SourceLocation NameLoc,
20260 NamedDecl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc,
20284 SourceLocation NameLoc) {
20285 Decl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, LookupOrdinaryName);
20290 (void)WeakUndeclaredIdentifiers[Name].insert(WeakInfo(nullptr, NameLoc));
20297 SourceLocation NameLoc,
20301 WeakInfo W = WeakInfo(Name, NameLoc);