Lines Matching defs:NameLoc

153                                 SourceLocation NameLoc,
191 switch (lookupUnqualifiedTypeNameInBase(S, II, NameLoc, BaseRD)) {
209 SourceLocation NameLoc) {
221 FoundTypeDecl = lookupUnqualifiedTypeNameInBase(S, II, NameLoc, RD);
229 S.Diag(NameLoc, diag::ext_found_in_dependent_base) << &II;
238 SS.MakeTrivial(Context, NNS, SourceRange(NameLoc));
242 DepTL.setNameLoc(NameLoc);
250 SourceLocation NameLoc,
280 Builder.pushTypeSpec(T).setNameLoc(NameLoc);
287 ParsedType Sema::getTypeName(const IdentifierInfo &II, SourceLocation NameLoc,
339 return ActOnTypenameType(S, SourceLocation(), *SS, II, NameLoc,
347 SourceLocation(), QualifierLoc, II, NameLoc);
363 LookupResult Result(*this, &II, NameLoc, Kind);
388 recoverFromTypeInKnownDependentBase(*this, II, NameLoc))
406 TemplateName.setIdentifier(NewII, NameLoc);
410 NewSS.MakeTrivial(Context, NNS, SourceRange(NameLoc));
420 ParsedType Ty = getTypeName(*NewII, NameLoc, S, NewSSPtr,
430 SS->MakeTrivial(Context, NNS, SourceRange(NameLoc));
446 TL.setNameLoc(NameLoc);
517 Diag(NameLoc, diag::err_out_of_line_qualified_id_type_names_constructor)
520 DiagnoseUseOfDecl(IIDecl, NameLoc);
525 (void)DiagnoseUseOfDecl(IDecl, NameLoc);
530 (void)DiagnoseUseOfDecl(UD, NameLoc);
555 return buildNamedType(*this, SS, T, NameLoc, WantNontrivialTypeSourceInfo);
591 SourceLocation NameLoc,
605 Diag(NameLoc, diag::ext_ms_delayed_template_argument) << &II;
615 Diag(NameLoc, diag::ext_undeclared_unqual_id_with_dependent_base) << &II
628 NNSLocBuilder.MakeTrivial(Context, NNS, SourceRange(NameLoc));
633 DepTL.setNameLoc(NameLoc);
812 SourceLocation NameLoc) {
813 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupTagName);
840 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag)
842 << FixItHint::CreateInsertion(NameLoc, FixItTagName);
860 SourceLocation NameLoc,
863 DeclarationNameInfo NameInfo(Name, NameLoc);
877 LookupResult Result(*this, Name, NameLoc, LookupOrdinaryName);
888 recoverFromTypeInKnownDependentBase(*this, *Name, NameLoc))
937 if (NamedDecl *D = ImplicitlyDefineFunction(NameLoc, *Name, S))
956 isTagTypeWithMissingTag(*this, Result, S, SS, Name, NameLoc)) {
1145 return buildNamedType(*this, &SS, T, NameLoc);
1150 DiagnoseUseOfDecl(Type, NameLoc);
1164 DiagnoseUseOfDecl(Class, NameLoc);
1186 (void)DiagnoseUseOfDecl(EmptyD, NameLoc);
1202 isTagTypeWithMissingTag(*this, Result, S, SS, Name, NameLoc)) {
1204 DiagnoseUseOfDecl(Type, NameLoc);
1227 SourceLocation NameLoc) {
1230 LookupResult Result(*this, Name, NameLoc, LookupOrdinaryName);
1237 SourceLocation NameLoc,
1239 DeclarationNameInfo NameInfo(Name, NameLoc);
1247 SourceLocation NameLoc,
1251 return ObjC().BuildIvarRefExpr(S, NameLoc, Ivar);
1254 LookupResult Result(*this, Found->getDeclName(), NameLoc, LookupOrdinaryName);
5260 SourceLocation NameLoc, bool IsUnion,
5262 LookupResult R(SemaRef, Name, NameLoc,
5279 SemaRef.DiagPlaceholderVariableDefinition(NameLoc);
5283 SemaRef.Diag(NameLoc, diag::err_anonymous_record_member_redecl)
15066 SourceLocation NameLoc,
15084 NameLoc, diag::err_arc_array_param_no_ownership, T, false));
15086 Diag(NameLoc, diag::err_arc_array_param_no_ownership)
15096 ParmVarDecl *New = ParmVarDecl::Create(Context, DC, StartLoc, NameLoc, Name,
15117 Diag(NameLoc,
15137 Diag(NameLoc, diag::err_arg_with_address_space);
16925 SourceLocation NameLoc) {
16940 S, II, NameLoc, Sema::LookupNestedNameSpecifierName);
16954 return FixItHint::CreateInsertion(NameLoc, Insertion);
16980 CXXScopeSpec &SS, IdentifierInfo *Name, SourceLocation NameLoc,
17009 KWLoc, NameLoc, SS, nullptr, TemplateParameterLists,
17045 S, TagSpec, TUK, KWLoc, SS, Name, NameLoc, Attrs, TemplateParams,
17136 SourceLocation Loc = NameLoc.isValid() ? NameLoc : KWLoc;
17181 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl);
17232 Diag(NameLoc, diag::err_not_tag_in_scope)
17244 DiagnoseClassNameShadow(SearchDC, DeclarationNameInfo(Name, NameLoc)))
17302 Diag(NameLoc, diag::ext_friend_tag_redecl_outside_namespace)
17303 << createFriendTagNNSFixIt(*this, ND, S, NameLoc);
17335 DiagnoseTemplateParameterShadow(NameLoc, Previous.getFoundDecl());
17532 if (CheckEnumRedeclaration(NameLoc.isValid() ? NameLoc : KWLoc,
17544 Diag(NameLoc, diag::ext_member_redeclared);
17626 Diag(NameLoc, diag::warn_redefinition_in_param_list) << Name;
17628 Diag(NameLoc, diag::err_redefinition) << Name;
17630 NameLoc.isValid() ? NameLoc : KWLoc);
17643 Diag(NameLoc, diag::err_nested_redefinition) << Name;
17688 Diag(NameLoc, diag::err_tag_reference_non_tag)
17701 Diag(NameLoc, diag::err_tag_reference_conflict) << NTK;
17710 Diag(NameLoc, diag::err_tag_definition_of_typedef)
17719 Diag(NameLoc, diag::err_redefinition_different_kind) << Name;
17720 notePreviousDefinition(PrevDecl, NameLoc);
17740 SourceLocation Loc = NameLoc.isValid() ? NameLoc : KWLoc;
20108 SourceLocation NameLoc,
20110 NamedDecl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc,
20134 SourceLocation NameLoc) {
20135 Decl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, LookupOrdinaryName);
20140 (void)WeakUndeclaredIdentifiers[Name].insert(WeakInfo(nullptr, NameLoc));
20147 SourceLocation NameLoc,
20151 WeakInfo W = WeakInfo(Name, NameLoc);