Home | History | Annotate | Download | only in Sema

Lines Matching refs:NameLoc

132 ParsedType Sema::getTypeName(IdentifierInfo &II, SourceLocation NameLoc,
165 return ActOnTypenameType(S, SourceLocation(), *SS, II, NameLoc).get();
170 II, NameLoc);
187 LookupResult Result(*this, &II, NameLoc, Kind);
221 TemplateName.setIdentifier(NewII, NameLoc);
225 NewSS.MakeTrivial(Context, NNS, SourceRange(NameLoc));
235 ParsedType Ty = getTypeName(*NewII, NameLoc, S, NewSSPtr,
243 Diag(NameLoc, diag::err_unknown_type_or_class_name_suggest)
245 << FixItHint::CreateReplacement(SourceRange(NameLoc),
252 SS->MakeTrivial(Context, NNS, SourceRange(NameLoc));
312 DiagnoseUseOfDecl(IIDecl, NameLoc);
324 Builder.pushTypeSpec(T).setNameLoc(NameLoc);
336 (void)DiagnoseUseOfDecl(IDecl, NameLoc);
520 SourceLocation NameLoc) {
521 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupTagName);
553 SemaRef.Diag(NameLoc, diag::err_use_of_tag_name_without_tag)
555 << FixItHint::CreateInsertion(NameLoc, FixItTagName);
573 QualType T, SourceLocation NameLoc) {
577 Builder.pushTypeSpec(T).setNameLoc(NameLoc);
589 SourceLocation NameLoc,
593 DeclarationNameInfo NameInfo(Name, NameLoc);
597 BuildCXXNestedNameSpecifier(S, *Name, NameLoc, NextToken.getLocation(),
602 LookupResult Result(*this, Name, NameLoc, LookupOrdinaryName);
641 if (NamedDecl *D = ImplicitlyDefineFunction(NameLoc, *Name, S)) {
652 isTagTypeWithMissingTag(*this, Result, S, SS, Name, NameLoc)) {
684 Diag(NameLoc, UnqualifiedDiag)
686 << FixItHint::CreateReplacement(NameLoc, CorrectedStr);
688 Diag(NameLoc, QualifiedDiag)
825 DiagnoseUseOfDecl(Type, NameLoc);
828 return buildNestedType(*this, SS, T, NameLoc);
841 DiagnoseUseOfDecl(Class, NameLoc);
865 isTagTypeWithMissingTag(*this, Result, S, SS, Name, NameLoc)) {
867 DiagnoseUseOfDecl(Type, NameLoc);
870 return buildNestedType(*this, SS, T, NameLoc);
3214 SourceLocation NameLoc,
3216 LookupResult R(SemaRef, Name, NameLoc, Sema::LookupMemberName,
3230 SemaRef.Diag(NameLoc, diagnostic) << Name;
8324 SourceLocation NameLoc, IdentifierInfo *Name,
8342 NameLoc, diag::err_arc_array_param_no_ownership, T, false));
8351 ParmVarDecl *New = ParmVarDecl::Create(Context, DC, StartLoc, NameLoc, Name,
8361 RequireNonAbstractType(NameLoc, T, diag::err_abstract_type_in_decl,
8369 Diag(NameLoc,
8381 Diag(NameLoc, diag::err_arg_with_address_space);
9308 IdentifierInfo *Name, SourceLocation NameLoc,
9336 = MatchTemplateParametersToScopeSpecifier(KWLoc, NameLoc, SS,
9351 SS, Name, NameLoc, Attr,
9404 LookupResult Previous(*this, Name, NameLoc, LookupTagName, Redecl);
9456 Diag(NameLoc, diag::err_not_tag_in_scope)
9503 DiagnoseTemplateParameterShadow(NameLoc, Previous.getFoundDecl());
9670 if (CheckEnumRedeclaration(NameLoc.isValid() ? NameLoc : KWLoc,
9708 Diag(NameLoc, diag::warn_redefinition_in_param_list) << Name;
9710 Diag(NameLoc, diag::err_redefinition) << Name;
9725 Diag(NameLoc, diag::err_nested_redefinition) << Name;
9766 Diag(NameLoc, diag::err_tag_reference_non_tag) << Kind;
9781 Diag(NameLoc, diag::err_tag_reference_conflict) << Kind;
9790 Diag(NameLoc, diag::err_tag_definition_of_typedef)
9799 Diag(NameLoc, diag::err_redefinition_different_kind) << Name;
9820 SourceLocation Loc = NameLoc.isValid() ? NameLoc : KWLoc;
9897 diagnoseQualifiedDeclaration(SS, DC, OrigName, NameLoc))
11812 SourceLocation NameLoc,
11814 Decl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc,
11828 SourceLocation NameLoc) {
11829 Decl *PrevDecl = LookupSingleName(TUScope, Name, NameLoc, LookupOrdinaryName);
11836 (Name, WeakInfo((IdentifierInfo*)0, NameLoc)));
11843 SourceLocation NameLoc,
11847 WeakInfo W = WeakInfo(Name, NameLoc);