Lines Matching defs:Loc
1114 void Sema::ActOnPopScope(SourceLocation Loc, Scope *S) {
1220 SourceLocation Loc) {
1232 Diag(Loc, diag::warn_implicit_decl_requires_stdio)
1238 Diag(Loc, diag::warn_implicit_decl_requires_setjmp)
1244 Diag(Loc, diag::ext_implicit_lib_function_decl)
1248 Diags.getDiagnosticLevel(diag::ext_implicit_lib_function_decl, Loc)
1250 Diag(Loc, diag::note_please_include_header)
1257 Loc, Loc, II, R, /*TInfo=*/0,
5473 SourceLocation Loc;
5476 else if (Init->isIntegerConstantExpr(Context, &Loc))
5481 Diag(Loc, diag::ext_in_class_initializer_non_constant)
5486 Diag(Loc, diag::err_in_class_initializer_non_constant)
6086 SourceLocation Loc,
6088 /* FIXME: setting StartLoc == Loc.
6091 ParmVarDecl *Param = ParmVarDecl::Create(Context, DC, Loc, Loc, 0,
6092 T, Context.getTrivialTypeSourceInfo(T, Loc),
6557 NamedDecl *Sema::ImplicitlyDefineFunction(SourceLocation Loc,
6566 Diag(Loc, diag::warn_use_out_of_scope_declaration) << Pos->second;
6573 Diag(Loc, diag::warn_builtin_unknown) << &II;
6575 Diag(Loc, diag::ext_implicit_function_decl) << &II;
6577 Diag(Loc, diag::warn_implicit_function_decl) << &II;
6584 bool Error = DS.SetTypeSpecType(DeclSpec::TST_int, Loc, Dummy, DiagID);
6592 0, 0, 0, 0, Loc, Loc, D),
6595 D.SetIdentifier(&II, Loc);
7361 SourceLocation Loc = NameLoc.isValid() ? NameLoc : KWLoc;
7372 New = EnumDecl::Create(Context, SearchDC, KWLoc, Loc, Name,
7383 Diag(Loc, diag::ext_forward_ref_enum_def)
7392 Diag(Loc, DiagID);
7418 New = CXXRecordDecl::Create(Context, Kind, SearchDC, KWLoc, Loc, Name,
7424 New = RecordDecl::Create(Context, Kind, SearchDC, KWLoc, Loc, Name,
7471 Diag(Loc
7686 SourceLocation Loc = DeclStart;
7687 if (II) Loc = D.getIdentifierLoc();
7698 TInfo = Context.getTrivialTypeSourceInfo(T, Loc);
7708 LookupResult Previous(*this, II, Loc, LookupMemberName, ForRedeclaration);
7732 = CheckFieldDecl(II, T, TInfo, Record, Loc, Mutable, BitWidth, HasInit,
7761 RecordDecl *Record, SourceLocation Loc,
7779 RequireCompleteType(Loc, EltTy, diag::err_field_incomplete)) {
7794 Diag(Loc, diag::warn_illegal_constant_array_size);
7798 Diag(Loc, diag::err_typecheck_negative_array_size);
7800 Diag(Loc, diag::err_array_too_large)
7803 Diag(Loc, diag::err_typecheck_field_variable_size);
7809 if (!InvalidDecl && RequireNonAbstractType(Loc, T,
7817 VerifyBitField(Loc, II, T, BitWidth, &ZeroWidth)) {
7832 SourceLocation ErrLoc = Loc;
7841 FieldDecl *NewFD = FieldDecl::Create(Context, Record, TSSL, Loc, II, T, TInfo,
7847 Diag(Loc, diag::err_duplicate_member) << II;
7889 Diag(Loc, diag::warn_attribute_weak_on_field);
7927 SourceLocation Loc = FD->getLocation();
7928 if (getSourceManager().isInSystemHeader(Loc)) {
7930 FD->addAttr(new (Context) UnavailableAttr(Loc, Context,
8131 SourceLocation Loc = DeclStart;
8132 if (II) Loc = D.getIdentifierLoc();
8142 if (VerifyBitField(Loc, II, T, BitWidth)) {
8153 Diag(Loc, diag::err_ivar_reference_type);
8159 Diag(Loc, diag::err_typecheck_ivar_variable_size);
8183 Diag(Loc, diag::err_misplaced_ivar) << CDecl->IsClassExtension();
8192 DeclStart, Loc, II, T,
8196 NamedDecl *PrevDecl = LookupSingleName(S, II, Loc, LookupMemberName,
8200 Diag(Loc, diag::err_duplicate_member) << II;
8411 SourceLocation loc = FD->getLocation();
8412 if (getSourceManager().isInSystemHeader(loc)) {
8414 FD->addAttr(new (Context) UnavailableAttr(loc, Context,