Home | History | Annotate | Download | only in Sema

Lines Matching defs:Loc

894 /// otherwise. Loc is the location where this routine should point to
901 SourceLocation Loc, SourceRange Range,
918 switch (CheckBaseClassAccess(Loc, Base, Derived, Paths.front(),
953 Diag(Loc, AmbigiousBaseConvID)
960 SourceLocation Loc, SourceRange Range,
967 Loc, Range, DeclarationName(),
1069 SourceLocation Loc = NameInfo.getLoc();
1072 if (Loc.isInvalid())
1073 Loc = D.getSourceRange().getBegin();
1144 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D, BitWidth,
1162 Diag(Loc, diag::err_static_not_bitfield)
1166 Diag(Loc, diag::err_typedef_not_bitfield)
1171 Diag(Loc, diag::err_not_integral_type_bitfield)
1224 Diag(Loc, diag::err_auto_var_requires_init)
1670 SourceLocation Loc = TInfo->getTypeLoc().getLocalSourceRange().getBegin();
1672 return Diag(Loc, diag::err_delegation_0x_only)
1704 return new (Context) CXXCtorInitializer(Context, Loc, LParenLoc, Constructor,
1952 SourceLocation Loc = Constructor->getLocation();
1965 Loc, ParamType, VK_LValue, 0);
1969 LookupResult MemberLookup(SemaRef, Field->getDeclName(), Loc,
1975 ParamType, Loc,
2002 = VarDecl::Create(SemaRef.Context, SemaRef.CurContext, Loc, Loc,
2004 SemaRef.Context.getTrivialTypeSourceInfo(SizeType, Loc),
2010 = SemaRef.BuildDeclRefExpr(IterationVar, SizeType, VK_RValue, Loc);
2016 Loc,
2018 Loc);
2038 InitializationKind::CreateDirect(Loc, SourceLocation(), SourceLocation());
2052 = CXXCtorInitializer::Create(SemaRef.Context, Field, Loc, Loc,
2053 MemberInit.takeAs<Expr>(), Loc,
2067 InitializationKind::CreateDefault(Loc);
2079 Field, Loc, Loc,
2081 Loc);
2115 Loc, Loc,
2117 Loc);
2741 bool Sema::RequireNonAbstractType(SourceLocation Loc, QualType T,
2744 return RequireNonAbstractType(Loc, T, PDiag(DiagID));
2746 return RequireNonAbstractType(Loc, T, PDiag(DiagID) << SelID);
2749 bool Sema::RequireNonAbstractType(SourceLocation Loc, QualType T,
2755 return RequireNonAbstractType(Loc, AT->getElementType(), PD);
2763 return RequireNonAbstractType(Loc, AT->getElementType(), PD);
2782 Diag(Loc, PD) << RD->getDeclName();
3391 SourceLocation Loc = CD->getLocation();
3424 if (CheckDestructorAccess(Loc, BaseDtor, PDiag()) !=
3436 if (CheckConstructorAccess(Loc, BaseDefault, BaseDefault->getAccess(),
3452 if (CheckDestructorAccess(Loc, BaseDtor, PDiag()) !=
3464 if (CheckConstructorAccess(Loc, BaseDefault, BaseDefault->getAccess(),
3497 if (CheckDestructorAccess(Loc, FieldDtor, PDiag()) !=
3547 if (CheckConstructorAccess(Loc, FieldDefault, FieldDefault->getAccess(),
3572 SourceLocation Loc = CD->getLocation();
3611 if (CheckDestructorAccess(Loc, BaseDtor, PDiag()) !=
3622 if (CheckConstructorAccess(Loc, BaseCtor, BaseCtor->getAccess(), PDiag()) !=
3639 if (CheckDestructorAccess(Loc, BaseDtor, PDiag()) !=
3650 if (CheckConstructorAccess(Loc, BaseCtor, BaseCtor->getAccess(), PDiag()) !=
3700 if (CheckDestructorAccess(Loc, FieldDtor, PDiag()) !=
3713 if (CheckConstructorAccess(Loc, FieldCtor, FieldCtor->getAccess(),
3728 SourceLocation Loc = MD->getLocation();
3769 if (CheckDirectMemberAccess(Loc, CopyOper, PDiag()) != AR_accessible)
3788 if (CheckDirectMemberAccess(Loc, CopyOper, PDiag()) != AR_accessible)
3839 if (CheckDirectMemberAccess(Loc, CopyOper, PDiag()) != AR_accessible)
3853 SourceLocation Loc = DD->getLocation();
3882 if (CheckDestructorAccess(Loc, BaseDtor, PDiag()) !=
3898 if (CheckDestructorAccess(Loc, BaseDtor, PDiag()) !=
3932 if (CheckDestructorAccess(Loc, FieldDtor, PDiag()) !=
3948 if (FindDeallocationFunction(Loc, RD, Name, OperatorDelete,
4332 SourceLocation Loc;
4335 Loc = Destructor->getLocation();
4337 Loc = RD->getLocation();
4343 if (FindDeallocationFunction(Loc, RD, Name, OperatorDelete))
4346 MarkDeclarationReferenced(Loc, OperatorDelete);
4619 SourceLocation Loc = II ? IdentLoc : LBrace;
4621 StartLoc, Loc, II);
6011 SourceLocation Loc = Constructor->getLocation();
6012 Constructor->setBody(new (Context) CompoundStmt(Context, 0, 0, Loc, Loc));
6367 SourceLocation Loc = Destructor->getLocation();
6368 Destructor->setBody(new (Context) CompoundStmt(Context, 0, 0, Loc, Loc));
6416 /// \param Loc The location where the implicit copy is being generated.
6432 BuildSingleCopyAssign(Sema &S, SourceLocation Loc, QualType T,
6448 LookupResult OpLookup(S, Name, Loc, Sema::LookupOrdinaryName);
6489 Loc);
6493 = S.BuildMemberReferenceExpr(To, T, Loc, /*isArrow=*/false, SS,
6504 Loc, &From, 1, Loc);
6515 ExprResult Assignment = S.CreateBuiltinBinOp(Loc, BO_Assign, To, From);
6540 VarDecl *IterationVar = VarDecl::Create(S.Context, S.CurContext, Loc, Loc,
6542 S.Context.getTrivialTypeSourceInfo(SizeType, Loc),
6547 IterationVar->setInit(IntegerLiteral::Create(S.Context, Zero, SizeType, Loc));
6552 = S.BuildDeclRefExpr(IterationVar, SizeType, VK_RValue, Loc).take();
6556 Stmt *InitStmt = new (S.Context) DeclStmt(DeclGroupRef(IterationVar),Loc,Loc);
6563 IntegerLiteral::Create(S.Context, Upper, SizeType, Loc),
6565 VK_RValue, OK_Ordinary, Loc);
6570 VK_LValue, OK_Ordinary, Loc);
6573 From = AssertSuccess(S.CreateBuiltinArraySubscriptExpr(From, Loc,
6574 IterationVarRef, Loc));
6575 To = AssertSuccess(S.CreateBuiltinArraySubscriptExpr(To, Loc,
6576 IterationVarRef, Loc));
6579 StmtResult Copy = BuildSingleCopyAssign(S, Loc, ArrayTy->getElementType(),
6586 return S.ActOnForStmt(Loc, Loc, InitStmt,
6589 Loc, Copy.take());
6814 SourceLocation Loc = CopyAssignOperator->getLocation();
6818 Expr *OtherRef = BuildDeclRefExpr(Other, OtherRefType, VK_LValue, Loc).take();
6823 Expr *This = ActOnCXXThis(Loc).takeAs<Expr>();
6849 ExprResult To = CreateBuiltinUnaryOp(Loc, UO_Deref, This);
6859 StmtResult Copy = BuildSingleCopyAssign(*this, Loc, BaseType,
6919 LookupResult MemberLookup(*this, Field->getDeclName(), Loc,
6924 Loc, /*IsArrow=*/false,
6927 Loc, /*IsArrow=*/true,
6952 From = CreateBuiltinUnaryOp(Loc, UO_AddrOf, From.get());
6953 To = CreateBuiltinUnaryOp(Loc, UO_AddrOf, To.get());
6964 Loc, LookupOrdinaryName);
6977 VK_LValue, Loc, 0).take();
6983 LookupResult R(*this, &Context.Idents.get("__builtin_memcpy"), Loc,
6997 VK_LValue, Loc, 0).take();
7004 CallArgs.push_back(IntegerLiteral::Create(Context, Size, SizeType, Loc));
7009 Loc, move_arg(CallArgs),
7010 Loc);
7014 Loc, move_arg(CallArgs),
7015 Loc);
7023 StmtResult Copy = BuildSingleCopyAssign(*this, Loc, FieldType,
7039 ExprResult ThisObj = CreateBuiltinUnaryOp(Loc, UO_Deref, This);
7041 StmtResult Return = ActOnReturnStmt(Loc, ThisObj.get());
7060 StmtResult Body = ActOnCompoundStmt(Loc, Loc, move_arg(Statements),
7551 SourceLocation Loc,
7571 bool Invalid = GatherArgumentsForCall(Loc, Constructor,
7988 SourceLocation Loc,
8004 Diag(Loc, diag::err_catch_rvalue_ref);
8028 !BaseType->isDependentType() && RequireCompleteType(Loc, BaseType, DK) &&
8033 RequireNonAbstractType(Loc, ExDeclType,
8046 Diag(Loc, diag::err_objc_object_catch);
8050 Diag(Loc, diag::warn_objc_pointer_cxx_catch_fragile);
8054 VarDecl *ExDecl = VarDecl::Create(Context, CurContext, StartLoc, Loc, Name,
8074 InitializationKind::CreateCopy(Loc, SourceLocation());
8077 new (Context) OpaqueValueExpr(Loc, initType, VK_LValue, OK_Ordinary);
8364 SourceLocation Loc = DS.getSourceRange().getBegin();
8378 if (DiagnoseUnexpandedParameterPack(Loc, TSI, UPPC_FriendDeclaration))
8396 Diag(Loc, diag::err_tagless_friend_type_template)
8414 D = FriendTemplateDecl::Create(Context, CurContext, Loc,
8438 SourceLocation Loc = D.getIdentifierLoc();
8453 Diag(Loc, diag::err_unexpected_friend);
8481 if (DiagnoseUnexpandedParameterPack(Loc, TInfo, UPPC_FriendDeclaration) ||
8580 Diag(Loc, diag::err_qualified_friend_not_found) << Name << T;
8604 Diag(Loc, diag::err_introducing_special_friend) <<
8938 void Sema::MarkVTableUsed(SourceLocation Loc, CXXRecordDecl *Class,
8967 MarkVirtualMembersReferenced(Loc, Class);
8969 VTableUses.push_back(std::make_pair(Class, Loc));
8986 SourceLocation Loc = VTableUses[I].second;
9034 MarkVirtualMembersReferenced(Loc, Class);
9050 void Sema::MarkVirtualMembersReferenced(SourceLocation Loc,
9059 MarkDeclarationReferenced(Loc, MD);
9072 MarkVirtualMembersReferenced(Loc, Base);