Lines Matching refs:NameLoc
147 SourceLocation NameLoc, in lookupUnqualifiedTypeNameInBase() argument
185 switch (lookupUnqualifiedTypeNameInBase(S, II, NameLoc, BaseRD)) { in lookupUnqualifiedTypeNameInBase()
203 SourceLocation NameLoc) { in recoverFromTypeInKnownDependentBase() argument
215 FoundTypeDecl = lookupUnqualifiedTypeNameInBase(S, II, NameLoc, RD); in recoverFromTypeInKnownDependentBase()
223 S.Diag(NameLoc, diag::ext_found_via_dependent_bases_lookup) << &II; in recoverFromTypeInKnownDependentBase()
231 SS.MakeTrivial(Context, NNS, SourceRange(NameLoc)); in recoverFromTypeInKnownDependentBase()
235 DepTL.setNameLoc(NameLoc); in recoverFromTypeInKnownDependentBase()
249 ParsedType Sema::getTypeName(const IdentifierInfo &II, SourceLocation NameLoc, in getTypeName() argument
282 return ActOnTypenameType(S, SourceLocation(), *SS, II, NameLoc).get(); in getTypeName()
286 II, NameLoc); in getTypeName()
302 LookupResult Result(*this, &II, NameLoc, Kind); in getTypeName()
327 recoverFromTypeInKnownDependentBase(*this, II, NameLoc)) in getTypeName()
345 TemplateName.setIdentifier(NewII, NameLoc); in getTypeName()
349 NewSS.MakeTrivial(Context, NNS, SourceRange(NameLoc)); in getTypeName()
359 ParsedType Ty = getTypeName(*NewII, NameLoc, S, NewSSPtr, in getTypeName()
368 SS->MakeTrivial(Context, NNS, SourceRange(NameLoc)); in getTypeName()
428 DiagnoseUseOfDecl(IIDecl, NameLoc); in getTypeName()
440 Builder.pushTypeSpec(T).setNameLoc(NameLoc); in getTypeName()
452 (void)DiagnoseUseOfDecl(IDecl, NameLoc); in getTypeName()
498 SourceLocation NameLoc, in ActOnMSVCUnknownTypeName() argument
512 Diag(NameLoc, diag::ext_ms_delayed_template_argument) << &II; in ActOnMSVCUnknownTypeName()
522 Diag(NameLoc, diag::ext_undeclared_unqual_id_with_dependent_base) << &II in ActOnMSVCUnknownTypeName()
534 NNSLocBuilder.MakeTrivial(Context, NNS, SourceRange(NameLoc)); in ActOnMSVCUnknownTypeName()
539 DepTL.setNameLoc(NameLoc); in ActOnMSVCUnknownTypeName()
713 SourceLocation NameLoc) { in isTagTypeWithMissingTag() argument
714 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupTagName); in isTagTypeWithMissingTag()
741 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag) in isTagTypeWithMissingTag()
743 << FixItHint::CreateInsertion(NameLoc, FixItTagName); in isTagTypeWithMissingTag()
761 QualType T, SourceLocation NameLoc) { in buildNestedType() argument
765 Builder.pushTypeSpec(T).setNameLoc(NameLoc); in buildNestedType()
776 SourceLocation NameLoc, const Token &NextToken, in ClassifyName() argument
779 DeclarationNameInfo NameInfo(Name, NameLoc); in ClassifyName()
783 BuildCXXNestedNameSpecifier(S, *Name, NameLoc, NextToken.getLocation(), in ClassifyName()
787 LookupResult Result(*this, Name, NameLoc, LookupOrdinaryName); in ClassifyName()
794 recoverFromTypeInKnownDependentBase(*this, *Name, NameLoc)) in ClassifyName()
834 if (NamedDecl *D = ImplicitlyDefineFunction(NameLoc, *Name, S)) { in ClassifyName()
845 isTagTypeWithMissingTag(*this, Result, S, SS, Name, NameLoc)) { in ClassifyName()
1016 DiagnoseUseOfDecl(Type, NameLoc); in ClassifyName()
1020 return buildNestedType(*this, SS, T, NameLoc); in ClassifyName()
1033 DiagnoseUseOfDecl(Class, NameLoc); in ClassifyName()
1057 isTagTypeWithMissingTag(*this, Result, S, SS, Name, NameLoc)) { in ClassifyName()
1059 DiagnoseUseOfDecl(Type, NameLoc); in ClassifyName()
1062 return buildNestedType(*this, SS, T, NameLoc); in ClassifyName()
4092 SourceLocation NameLoc, in CheckAnonMemberRedeclaration() argument
4094 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupMemberName, in CheckAnonMemberRedeclaration()
4105 SemaRef.Diag(NameLoc, diag::err_anonymous_record_member_redecl) in CheckAnonMemberRedeclaration()
10969 SourceLocation NameLoc, IdentifierInfo *Name, in CheckParameter() argument
10986 NameLoc, diag::err_arc_array_param_no_ownership, T, false)); in CheckParameter()
10995 ParmVarDecl *New = ParmVarDecl::Create(Context, DC, StartLoc, NameLoc, Name, in CheckParameter()
11003 RequireNonAbstractType(NameLoc, T, diag::err_abstract_type_in_decl, in CheckParameter()
11012 Diag(NameLoc, in CheckParameter()
11027 Diag(NameLoc, diag::err_arg_with_address_space); in CheckParameter()
12172 SourceLocation NameLoc) { in createFriendTagNNSFixIt() argument
12187 S, II, NameLoc, Sema::LookupNestedNameSpecifierName); in createFriendTagNNSFixIt()
12201 return FixItHint::CreateInsertion(NameLoc, Insertion); in createFriendTagNNSFixIt()
12259 IdentifierInfo *Name, SourceLocation NameLoc, in ActOnTag() argument
12289 KWLoc, NameLoc, SS, nullptr, TemplateParameterLists, in ActOnTag()
12305 SS, Name, NameLoc, Attr, in ActOnTag()
12365 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl); in ActOnTag()
12416 Diag(NameLoc, diag::err_not_tag_in_scope) in ActOnTag()
12428 DiagnoseClassNameShadow(SearchDC, DeclarationNameInfo(Name, NameLoc))) in ActOnTag()
12486 Diag(NameLoc, diag::ext_friend_tag_redecl_outside_namespace) in ActOnTag()
12487 << createFriendTagNNSFixIt(*this, ND, S, NameLoc); in ActOnTag()
12508 DiagnoseTemplateParameterShadow(NameLoc, Previous.getFoundDecl()); in ActOnTag()
12701 if (CheckEnumRedeclaration(NameLoc.isValid() ? NameLoc : KWLoc, in ActOnTag()
12713 Diag(NameLoc, diag::ext_member_redeclared); in ActOnTag()
12782 Diag(NameLoc, diag::warn_redefinition_in_param_list) << Name; in ActOnTag()
12784 Diag(NameLoc, diag::err_redefinition) << Name; in ActOnTag()
12798 Diag(NameLoc, diag::err_nested_redefinition) << Name; in ActOnTag()
12846 Diag(NameLoc, diag::err_tag_reference_non_tag) << Kind; in ActOnTag()
12861 Diag(NameLoc, diag::err_tag_reference_conflict) << Kind; in ActOnTag()
12870 Diag(NameLoc, diag::err_tag_definition_of_typedef) in ActOnTag()
12879 Diag(NameLoc, diag::err_redefinition_different_kind) << Name; in ActOnTag()
12900 SourceLocation Loc = NameLoc.isValid() ? NameLoc : KWLoc; in ActOnTag()
15180 SourceLocation NameLoc, in ActOnPragmaRedefineExtname() argument
15182 NamedDecl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, in ActOnPragmaRedefineExtname()
15204 SourceLocation NameLoc) { in ActOnPragmaWeakID() argument
15205 Decl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, LookupOrdinaryName); in ActOnPragmaWeakID()
15212 (Name, WeakInfo((IdentifierInfo*)nullptr, NameLoc))); in ActOnPragmaWeakID()
15219 SourceLocation NameLoc, in ActOnPragmaWeakAlias() argument
15223 WeakInfo W = WeakInfo(Name, NameLoc); in ActOnPragmaWeakAlias()