Lines Matching full:loc
1576 /// otherwise. Loc is the location where this routine should point to
1583 SourceLocation Loc, SourceRange Range,
1600 switch (CheckBaseClassAccess(Loc, Base, Derived, Paths.front(),
1636 Diag(Loc, AmbigiousBaseConvID)
1644 SourceLocation Loc, SourceRange Range,
1651 Loc, Range, DeclarationName(),
1791 SourceLocation Loc = NameInfo.getLoc();
1794 if (Loc.isInvalid())
1795 Loc = D.getLocStart();
1839 Diag(Loc, diag::err_invalid_member_in_interface)
1842 Diag(Loc, diag::err_invalid_member_in_interface)
1913 Diag(Loc, diag::err_bad_variable_name)
1960 Member = HandleMSProperty(S, cast<CXXRecordDecl>(CurContext), Loc, D,
1966 Member = HandleField(S, cast<CXXRecordDecl>(CurContext), Loc, D,
1984 Diag(Loc, diag::err_static_not_bitfield)
1988 Diag(Loc, diag::err_typedef_not_bitfield)
1993 Diag(Loc, diag::err_not_integral_type_bitfield)
2944 SourceLocation Loc = Constructor->getLocation();
2958 Loc, ParamType, VK_LValue, 0);
2968 LookupResult MemberLookup(SemaRef, Field->getDeclName(), Loc,
2975 ParamType, Loc,
3012 = VarDecl::Create(SemaRef.Context, SemaRef.CurContext, Loc, Loc,
3014 SemaRef.Context.getTrivialTypeSourceInfo(SizeType, Loc),
3020 = SemaRef.BuildDeclRefExpr(IterationVar, SizeType, VK_LValue, Loc);
3028 CtorArg = SemaRef.CreateBuiltinArraySubscriptExpr(CtorArg.take(), Loc,
3030 Loc);
3057 InitializationKind::CreateDirect(Loc, SourceLocation(), SourceLocation());
3074 Loc, Loc,
3076 Loc);
3078 CXXMemberInit = CXXCtorInitializer::Create(SemaRef.Context, Field, Loc,
3079 Loc, MemberInit.takeAs<Expr>(),
3080 Loc,
3097 InitializationKind::CreateDefault(Loc);
3109 Indirect, Loc,
3110 Loc,
3112 Loc);
3115 Field, Loc, Loc,
3117 Loc);
3151 Loc, Loc,
3153 Loc);
3866 bool Sema::RequireNonAbstractType(SourceLocation Loc, QualType T,
3876 void diagnose(Sema &S, SourceLocation Loc, QualType T) LLVM_OVERRIDE {
3879 S.Diag(Loc, DiagID) << T;
3881 S.Diag(Loc, DiagID) << SelID << T;
3885 return RequireNonAbstractType(Loc, T, Diagnoser);
3888 bool Sema::RequireNonAbstractType(SourceLocation Loc, QualType T,
3894 return RequireNonAbstractType(Loc, AT->getElementType(), Diagnoser);
3902 return RequireNonAbstractType(Loc, AT->getElementType(), Diagnoser);
3921 Diagnoser.diagnose(*this, Loc, T);
4412 computeImplicitExceptionSpec(Sema &S, SourceLocation Loc, CXXMethodDecl *MD) {
4415 return S.ComputeDefaultedDefaultCtorExceptionSpec(Loc, MD);
4443 void Sema::EvaluateImplicitExceptionSpec(SourceLocation Loc, CXXMethodDecl *MD) {
4450 computeImplicitExceptionSpec(*this, Loc, MD);
4671 SourceLocation Loc;
4679 ConstArg(false), VolatileArg(false), Loc(MD->getLocation()),
5949 SourceLocation Loc;
5952 Loc = Destructor->getLocation();
5954 Loc = RD->getLocation();
5960 if (FindDeallocationFunction(Loc, RD, Name, OperatorDelete))
5963 MarkFunctionReferenced(Loc, OperatorDelete);
6228 SourceLocation Loc,
6240 S.getSourceManager().isInSystemHeader(Loc)) {
6257 S.Diag(Loc, diag::warn_inline_namespace_reopened_noninline)
6260 S.Diag(Loc, diag::err_inline_namespace_mismatch)
6278 SourceLocation Loc = II ? IdentLoc : LBrace;
6316 DiagnoseNamespaceInlineMismatch(*this, NamespaceLoc, Loc, II,
6320 Diag(Loc, diag::err_redefinition_different_kind)
6354 StartLoc, Loc, II, PrevNS);
6362 PushNamespaceVisibilityAttr(Attr, Loc);
6529 static ClassTemplateDecl *LookupStdInitializerList(Sema &S, SourceLocation Loc){
6532 S.Diag(Loc, diag::err_implied_std_initializer_list_not_found);
6537 Loc, Sema::LookupOrdinaryName);
6539 S.Diag(Loc, diag::err_implied_std_initializer_list_not_found);
6563 QualType Sema::BuildStdInitializerList(QualType Element, SourceLocation Loc) {
6565 StdInitializerList = LookupStdInitializerList(*this, Loc);
6570 TemplateArgumentListInfo Args(Loc, Loc);
6573 Loc)));
6575 CheckTemplateIdType(TemplateName(StdInitializerList), Loc, Args));
7692 Sema::ComputeDefaultedDefaultCtorExceptionSpec(SourceLocation Loc,
7756 Diag(Loc, diag::err_in_class_initializer_references_def_ctor) << MD;
7952 SourceLocation Loc = Constructor->getLocation();
7953 Constructor->setBody(new (Context) CompoundStmt(Loc));
8290 SourceLocation Loc = Constructor->getLocation();
8291 Constructor->setBody(new (Context) CompoundStmt(Loc));
8425 SourceLocation Loc = Destructor->getLocation();
8426 Destructor->setBody(new (Context) CompoundStmt(Loc));
8494 buildMemcpyForAssignmentOp(Sema &S, SourceLocation Loc, QualType T,
8506 VK_RValue, OK_Ordinary, Loc);
8509 VK_RValue, OK_Ordinary, Loc);
8519 LookupResult R(S, &S.Context.Idents.get(MemCpyName), Loc,
8530 VK_RValue, Loc, 0);
8534 To, From, IntegerLiteral::Create(S.Context, Size, SizeType, Loc)
8537 Loc, CallArgs, Loc);
8552 /// \param Loc The location where the implicit copy/move is being generated.
8571 buildSingleCopyAssignRecursively(Sema &S, SourceLocation Loc, QualType T,
8595 LookupResult OpLookup(S, Name, Loc, Sema::LookupOrdinaryName);
8641 Loc);
8645 = S.BuildMemberReferenceExpr(To, T, Loc, /*isArrow=*/false, SS,
8658 Loc, From, Loc);
8677 ExprResult Assignment = S.CreateBuiltinBinOp(Loc, BO_Assign, To, From);
8701 VarDecl *IterationVar = VarDecl::Create(S.Context, S.CurContext, Loc, Loc,
8703 S.Context.getTrivialTypeSourceInfo(SizeType, Loc),
8708 IterationVar->setInit(IntegerLiteral::Create(S.Context, Zero, SizeType, Loc));
8713 = S.BuildDeclRefExpr(IterationVar, SizeType, VK_LValue, Loc).take();
8719 Stmt *InitStmt = new (S.Context) DeclStmt(DeclGroupRef(IterationVar),Loc,Loc);
8722 From = AssertSuccess(S.CreateBuiltinArraySubscriptExpr(From, Loc,
8724 Loc));
8725 To = AssertSuccess(S.CreateBuiltinArraySubscriptExpr(To, Loc,
8727 Loc));
8733 buildSingleCopyAssignRecursively(S, Loc, ArrayTy->getElementType(),
8745 IntegerLiteral::Create(S.Context, Upper, SizeType, Loc),
8747 VK_RValue, OK_Ordinary, Loc, false);
8752 VK_LValue, OK_Ordinary, Loc);
8755 return S.ActOnForStmt(Loc, Loc, InitStmt,
8758 Loc, Copy.take());
8762 buildSingleCopyAssign(Sema &S, SourceLocation Loc, QualType T,
8768 return buildMemcpyForAssignmentOp(S, Loc, T, To, From);
8770 StmtResult Result(buildSingleCopyAssignRecursively(S, Loc, T, To, From,
8777 return buildMemcpyForAssignmentOp(S, Loc, T, To, From);
9019 SourceLocation Loc = CopyAssignOperator->getLocation();
9023 Expr *OtherRef = BuildDeclRefExpr(Other, OtherRefType, VK_LValue, Loc).take();
9028 Expr *This = ActOnCXXThis(Loc).takeAs<Expr>();
9054 ExprResult To = CreateBuiltinUnaryOp(Loc, UO_Deref, This);
9064 StmtResult Copy = buildSingleCopyAssign(*this, Loc, BaseType,
9127 LookupResult MemberLookup(*this, Field->getDeclName(), Loc,
9132 Loc, /*IsArrow=*/false,
9136 Loc, /*IsArrow=*/true,
9143 StmtResult Copy = buildSingleCopyAssign(*this, Loc, FieldType,
9160 ExprResult ThisObj = CreateBuiltinUnaryOp(Loc, UO_Deref, This);
9162 StmtResult Return = ActOnReturnStmt(Loc, ThisObj.get());
9184 Body = ActOnCompoundStmt(Loc, Loc, Statements,
9477 SourceLocation Loc = MoveAssignOperator->getLocation();
9481 Expr *OtherRef = BuildDeclRefExpr(Other, OtherRefType, VK_LValue, Loc).take();
9488 Expr *This = ActOnCXXThis(Loc).takeAs<Expr>();
9513 ExprResult To = CreateBuiltinUnaryOp(Loc, UO_Deref, This);
9523 StmtResult Move = buildSingleCopyAssign(*this, Loc, BaseType,
9586 LookupResult MemberLookup(*this, Field->getDeclName(), Loc,
9591 Loc, /*IsArrow=*/false,
9595 Loc, /*IsArrow=*/true,
9606 StmtResult Move = buildSingleCopyAssign(*this, Loc, FieldType,
9623 ExprResult ThisObj = CreateBuiltinUnaryOp(Loc, UO_Deref, This);
9625 Loc, ThisObj.get());
9647 Body = ActOnCompoundStmt(Loc, Loc, Statements,
10231 SourceLocation Loc,
10253 bool Invalid = GatherArgumentsForCall(Loc, Constructor,
10261 DiagnoseSentinelCalls(Constructor, Loc, AllArgs);
10266 Proto, Loc);
10725 SourceLocation Loc,
10741 Diag(Loc, diag::err_catch_rvalue_ref);
10759 !BaseType->isDependentType() && RequireCompleteType(Loc, BaseType, DK))
10763 RequireNonAbstractType(Loc, ExDeclType,
10776 Diag(Loc, diag::err_objc_object_catch);
10781 Diag(Loc, diag::warn_objc_pointer_cxx_catch_fragile);
10785 VarDecl *ExDecl = VarDecl::Create(Context, CurContext, StartLoc, Loc, Name,
10812 InitializationKind::CreateCopy(Loc, SourceLocation());
10815 new (Context) OpaqueValueExpr(Loc, initType, VK_LValue, OK_Ordinary);
11149 SourceLocation Loc = DS.getLocStart();
11163 if (DiagnoseUnexpandedParameterPack(Loc, TSI, UPPC_FriendDeclaration))
11181 Diag(Loc, diag::err_tagless_friend_type_template)
11199 D = FriendTemplateDecl::Create(Context, CurContext, Loc,
11205 D = CheckFriendTypeDecl(Loc, DS.getFriendSpecLoc(), TSI);
11223 SourceLocation Loc = D.getIdentifierLoc();
11237 Diag(Loc, diag::err_unexpected_friend);
11265 if (DiagnoseUnexpandedParameterPack(Loc, TInfo, UPPC_FriendDeclaration) ||
11373 Diag(Loc, diag::err_qualified_friend_not_found)
11424 Diag(Loc, diag::err_introducing_special_friend) <<
11878 void Sema::MarkVTableUsed(SourceLocation Loc, CXXRecordDecl *Class,
11907 MarkVirtualMembersReferenced(Loc, Class);
11909 VTableUses.push_back(std::make_pair(Class, Loc));
11927 SourceLocation Loc = VTableUses[I].second;
11978 MarkVirtualMemberExceptionSpecsNeeded(Loc, Class);
11986 MarkVirtualMembersReferenced(Loc, Class);
12008 void Sema::MarkVirtualMemberExceptionSpecsNeeded(SourceLocation Loc,
12013 ResolveExceptionSpec(Loc, (*I)->getType()->castAs<FunctionProtoType>());
12016 void Sema::MarkVirtualMembersReferenced(SourceLocation Loc,
12033 MarkFunctionReferenced(Loc, Overrider);
12047 MarkVirtualMembersReferenced(Loc, Base);
12438 SourceLocation Loc = D.getIdentifierLoc();
12449 TInfo = Context.getTrivialTypeSourceInfo(T, Loc);
12462 LookupResult Previous(*this, II, Loc, LookupMemberName, ForRedeclaration);
12493 NewPD = new (Context) MSPropertyDecl(Record, Loc,