Lines Matching refs:Loc

1296 /// otherwise. Loc is the location where this routine should point to
1303 SourceLocation Loc, SourceRange Range,
1320 switch (CheckBaseClassAccess(Loc, Base, Derived, Paths.front(),
1355 Diag(Loc, AmbigiousBaseConvID)
1362 SourceLocation Loc, SourceRange Range,
1369 Loc, Range, DeclarationName(),
1502 SourceLocation Loc = NameInfo.getLoc();
1505 if (Loc.isInvalid())
1506 Loc = D.getLocStart();
1557 Diag(Loc, diag::err_bad_variable_name)
1601 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D, BitWidth,
1619 Diag(Loc, diag::err_static_not_bitfield)
1623 Diag(Loc, diag::err_typedef_not_bitfield)
1628 Diag(Loc, diag::err_not_integral_type_bitfield)
2577 SourceLocation Loc = Constructor->getLocation();
2591 Loc, ParamType, VK_LValue, 0);
2601 LookupResult MemberLookup(SemaRef, Field->getDeclName(), Loc,
2608 ParamType, Loc,
2645 = VarDecl::Create(SemaRef.Context, SemaRef.CurContext, Loc, Loc,
2647 SemaRef.Context.getTrivialTypeSourceInfo(SizeType, Loc),
2653 = SemaRef.BuildDeclRefExpr(IterationVar, SizeType, VK_LValue, Loc);
2661 CtorArg = SemaRef.CreateBuiltinArraySubscriptExpr(CtorArg.take(), Loc,
2663 Loc);
2690 InitializationKind::CreateDirect(Loc, SourceLocation(), SourceLocation());
2708 Loc, Loc,
2710 Loc);
2712 CXXMemberInit = CXXCtorInitializer::Create(SemaRef.Context, Field, Loc,
2713 Loc, MemberInit.takeAs<Expr>(),
2714 Loc,
2730 InitializationKind::CreateDefault(Loc);
2742 Indirect, Loc,
2743 Loc,
2745 Loc);
2748 Field, Loc, Loc,
2750 Loc);
2784 Loc, Loc,
2786 Loc);
3488 bool Sema::RequireNonAbstractType(SourceLocation Loc, QualType T,
3498 virtual void diagnose(Sema &S, SourceLocation Loc, QualType T) {
3501 S.Diag(Loc, DiagID) << T;
3503 S.Diag(Loc, DiagID) << SelID << T;
3507 return RequireNonAbstractType(Loc, T, Diagnoser);
3510 bool Sema::RequireNonAbstractType(SourceLocation Loc, QualType T,
3516 return RequireNonAbstractType(Loc, AT->getElementType(), Diagnoser);
3524 return RequireNonAbstractType(Loc, AT->getElementType(), Diagnoser);
3543 Diagnoser.diagnose(*this, Loc, T);
3994 computeImplicitExceptionSpec(Sema &S, SourceLocation Loc, CXXMethodDecl *MD) {
3997 return S.ComputeDefaultedDefaultCtorExceptionSpec(Loc, MD);
4025 void Sema::EvaluateImplicitExceptionSpec(SourceLocation Loc, CXXMethodDecl *MD) {
4032 computeImplicitExceptionSpec(*this, Loc, MD);
4247 SourceLocation Loc;
4255 ConstArg(false), VolatileArg(false), Loc(MD->getLocation()),
5052 SourceLocation Loc;
5055 Loc = Destructor->getLocation();
5057 Loc = RD->getLocation();
5063 if (FindDeallocationFunction(Loc, RD, Name, OperatorDelete))
5066 MarkFunctionReferenced(Loc, OperatorDelete);
5341 SourceLocation Loc = II ? IdentLoc : LBrace;
5383 Diag(Loc, diag::warn_inline_namespace_reopened_noninline)
5386 Diag(Loc, diag::err_inline_namespace_mismatch)
5395 Diag(Loc, diag::err_redefinition_different_kind)
5425 Diag(Loc, diag::err_inline_namespace_mismatch)
5435 StartLoc, Loc, II, PrevNS);
5443 PushNamespaceVisibilityAttr(Attr, Loc);
5610 static ClassTemplateDecl *LookupStdInitializerList(Sema &S, SourceLocation Loc){
5613 S.Diag(Loc, diag::err_implied_std_initializer_list_not_found);
5618 Loc, Sema::LookupOrdinaryName);
5620 S.Diag(Loc, diag::err_implied_std_initializer_list_not_found);
5644 QualType Sema::BuildStdInitializerList(QualType Element, SourceLocation Loc) {
5646 StdInitializerList = LookupStdInitializerList(*this, Loc);
5651 TemplateArgumentListInfo Args(Loc, Loc);
5654 Loc)));
5656 CheckTemplateIdType(TemplateName(StdInitializerList), Loc, Args));
6740 Sema::ComputeDefaultedDefaultCtorExceptionSpec(SourceLocation Loc,
6804 Diag(Loc, diag::err_in_class_initializer_references_def_ctor) << MD;
6892 SourceLocation Loc = Constructor->getLocation();
6893 Constructor->setBody(new (Context) CompoundStmt(Loc));
7208 SourceLocation Loc = Destructor->getLocation();
7209 Destructor->setBody(new (Context) CompoundStmt(Loc));
7274 /// \param Loc The location where the implicit copy/move is being generated.
7292 BuildSingleCopyAssign(Sema &S, SourceLocation Loc, QualType T,
7310 LookupResult OpLookup(S, Name, Loc, Sema::LookupOrdinaryName);
7353 Loc);
7357 = S.BuildMemberReferenceExpr(To, T, Loc, /*isArrow=*/false, SS,
7370 Loc, &From, 1, Loc);
7381 ExprResult Assignment = S.CreateBuiltinBinOp(Loc, BO_Assign, To, From);
7406 VarDecl *IterationVar = VarDecl::Create(S.Context, S.CurContext, Loc, Loc,
7408 S.Context.getTrivialTypeSourceInfo(SizeType, Loc),
7413 IterationVar->setInit(IntegerLiteral::Create(S.Context, Zero, SizeType, Loc));
7418 = S.BuildDeclRefExpr(IterationVar, SizeType, VK_LValue, Loc).take();
7424 Stmt *InitStmt = new (S.Context) DeclStmt(DeclGroupRef(IterationVar),Loc,Loc);
7431 IntegerLiteral::Create(S.Context, Upper, SizeType, Loc),
7433 VK_RValue, OK_Ordinary, Loc);
7438 VK_LValue, OK_Ordinary, Loc);
7441 From = AssertSuccess(S.CreateBuiltinArraySubscriptExpr(From, Loc,
7443 Loc));
7444 To = AssertSuccess(S.CreateBuiltinArraySubscriptExpr(To, Loc,
7446 Loc));
7451 StmtResult Copy = BuildSingleCopyAssign(S, Loc, ArrayTy->getElementType(),
7458 return S.ActOnForStmt(Loc, Loc, InitStmt,
7461 Loc, Copy.take());
7700 SourceLocation Loc = CopyAssignOperator->getLocation();
7704 Expr *OtherRef = BuildDeclRefExpr(Other, OtherRefType, VK_LValue, Loc).take();
7709 Expr *This = ActOnCXXThis(Loc).takeAs<Expr>();
7735 ExprResult To = CreateBuiltinUnaryOp(Loc, UO_Deref, This);
7745 StmtResult Copy = BuildSingleCopyAssign(*this, Loc, BaseType,
7808 LookupResult MemberLookup(*this, Field->getDeclName(), Loc,
7813 Loc, /*IsArrow=*/false,
7817 Loc, /*IsArrow=*/true,
7843 From = CreateBuiltinUnaryOp(Loc, UO_AddrOf, From.get());
7844 To = CreateBuiltinUnaryOp(Loc, UO_AddrOf, To.get());
7855 Loc, LookupOrdinaryName);
7868 VK_RValue, Loc, 0).take();
7874 LookupResult R(*this, &Context.Idents.get("__builtin_memcpy"), Loc,
7888 VK_RValue, Loc, 0).take();
7895 CallArgs.push_back(IntegerLiteral::Create(Context, Size, SizeType, Loc));
7900 Loc, CallArgs,
7901 Loc);
7905 Loc, CallArgs,
7906 Loc);
7914 StmtResult Copy = BuildSingleCopyAssign(*this, Loc, FieldType,
7931 ExprResult ThisObj = CreateBuiltinUnaryOp(Loc, UO_Deref, This);
7933 StmtResult Return = ActOnReturnStmt(Loc, ThisObj.get());
7955 Body = ActOnCompoundStmt(Loc, Loc, Statements,
8238 SourceLocation Loc = MoveAssignOperator->getLocation();
8242 Expr *OtherRef = BuildDeclRefExpr(Other, OtherRefType, VK_LValue, Loc).take();
8249 Expr *This = ActOnCXXThis(Loc).takeAs<Expr>();
8274 ExprResult To = CreateBuiltinUnaryOp(Loc, UO_Deref, This);
8284 StmtResult Move = BuildSingleCopyAssign(*this, Loc, BaseType,
8347 LookupResult MemberLookup(*this, Field->getDeclName(), Loc,
8352 Loc, /*IsArrow=*/false,
8356 Loc, /*IsArrow=*/true,
8390 VK_RValue, OK_Ordinary, Loc);
8393 VK_RValue, OK_Ordinary, Loc);
8404 Loc, LookupOrdinaryName);
8417 VK_RValue, Loc, 0).take();
8423 LookupResult R(*this, &Context.Idents.get("__builtin_memcpy"), Loc,
8437 VK_RValue, Loc, 0).take();
8444 CallArgs.push_back(IntegerLiteral::Create(Context, Size, SizeType, Loc));
8449 Loc, CallArgs,
8450 Loc);
8454 Loc, CallArgs,
8455 Loc);
8463 StmtResult Move = BuildSingleCopyAssign(*this, Loc, FieldType,
8480 ExprResult ThisObj = CreateBuiltinUnaryOp(Loc, UO_Deref, This);
8482 StmtResult Return = ActOnReturnStmt(Loc, ThisObj.get());
8504 Body = ActOnCompoundStmt(Loc, Loc, Statements,
9152 SourceLocation Loc,
9173 bool Invalid = GatherArgumentsForCall(Loc, Constructor,
9178 DiagnoseSentinelCalls(Constructor, Loc, AllArgs.data(), AllArgs.size());
9181 Proto, Loc);
9625 SourceLocation Loc,
9641 Diag(Loc, diag::err_catch_rvalue_ref);
9659 !BaseType->isDependentType() && RequireCompleteType(Loc, BaseType, DK))
9663 RequireNonAbstractType(Loc, ExDeclType,
9676 Diag(Loc, diag::err_objc_object_catch);
9681 Diag(Loc, diag::warn_objc_pointer_cxx_catch_fragile);
9685 VarDecl *ExDecl = VarDecl::Create(Context, CurContext, StartLoc, Loc, Name,
9709 InitializationKind::CreateCopy(Loc, SourceLocation());
9712 new (Context) OpaqueValueExpr(Loc, initType, VK_LValue, OK_Ordinary);
9843 FriendDecl *Sema::CheckFriendTypeDecl(SourceLocation Loc,
9901 return FriendDecl::Create(Context, CurContext, Loc, TSInfo, FriendLoc);
10042 SourceLocation Loc = DS.getLocStart();
10056 if (DiagnoseUnexpandedParameterPack(Loc, TSI, UPPC_FriendDeclaration))
10074 Diag(Loc, diag::err_tagless_friend_type_template)
10092 D = FriendTemplateDecl::Create(Context, CurContext, Loc,
10098 D = CheckFriendTypeDecl(Loc, DS.getFriendSpecLoc(), TSI);
10116 SourceLocation Loc = D.getIdentifierLoc();
10130 Diag(Loc, diag::err_unexpected_friend);
10158 if (DiagnoseUnexpandedParameterPack(Loc, TInfo, UPPC_FriendDeclaration) ||
10267 Diag(Loc, diag::err_qualified_friend_not_found)
10318 Diag(Loc, diag::err_introducing_special_friend) <<
10741 void Sema::MarkVTableUsed(SourceLocation Loc, CXXRecordDecl *Class,
10771 MarkVirtualMembersReferenced(Loc, Class);
10773 VTableUses.push_back(std::make_pair(Class, Loc));
10791 SourceLocation Loc = VTableUses[I].second;
10842 MarkVirtualMemberExceptionSpecsNeeded(Loc, Class);
10850 MarkVirtualMembersReferenced(Loc, Class);
10872 void Sema::MarkVirtualMemberExceptionSpecsNeeded(SourceLocation Loc,
10877 ResolveExceptionSpec(Loc, (*I)->getType()->castAs<FunctionProtoType>());
10880 void Sema::MarkVirtualMembersReferenced(SourceLocation Loc,
10897 MarkFunctionReferenced(Loc, Overrider);
10911 MarkVirtualMembersReferenced(Loc, Base);