Lines Matching full:loc
437 FieldDecl *Sema::checkInitCapture(SourceLocation Loc, bool ByRef,
446 TLB.pushTypeSpec(DeductType).setNameLoc(Loc);
448 DeductType = BuildReferenceType(DeductType, true, Loc, Id);
450 TLB.push<ReferenceTypeLoc>(DeductType).setSigilLoc(Loc);
454 InitializationKind InitKind = InitializationKind::CreateDefault(Loc);
460 Loc, Parens->getLParenLoc(), Parens->getRParenLoc());
480 InitKind = InitializationKind::CreateDirectList(Loc);
482 InitKind = InitializationKind::CreateCopy(Loc, Loc);
486 Diag(Loc, diag::err_init_capture_deduction_failure_from_init_list)
489 Diag(Loc, diag::err_init_capture_deduction_failure)
500 Loc, /*Mutable*/ false, /*BitWidth*/ 0, ICIS_NoInit,
501 Loc, AS_public, /*PrevDecl*/ 0, /*Declarator*/ 0);
615 PrevCaptureLoc = C->Loc, ++C) {
621 Diag(C->Loc, diag::err_capture_more_than_once)
625 SourceRange(PP.getLocForEndOfToken(PrevCaptureLoc), C->Loc));
633 Diag(C->Loc, diag::err_this_capture_with_copy_default)
635 SourceRange(PP.getLocForEndOfToken(PrevCaptureLoc), C->Loc));
644 Diag(C->Loc, diag::err_this_capture) << true;
648 CheckCXXThisCapture(C->Loc, /*Explicit=*/true);
661 Diag(C->Loc, diag::err_capture_more_than_once) << C->Id;
666 FieldDecl *NewFD = checkInitCapture(C->Loc, C->Kind == LCK_ByRef,
684 Diag(C->Loc, diag::err_reference_capture_with_reference_default)
686 SourceRange(PP.getLocForEndOfToken(PrevCaptureLoc), C->Loc));
689 Diag(C->Loc, diag::err_copy_capture_with_copy_default)
691 SourceRange(PP.getLocForEndOfToken(PrevCaptureLoc), C->Loc));
698 DeclarationNameInfo Name(C->Id, C->Loc);
718 Diag(C->Loc, diag::err_capture_more_than_once)
721 SourceRange(PP.getLocForEndOfToken(PrevCaptureLoc), C->Loc));
724 Diag(C->Loc, diag::err_capture_more_than_once) << C->Id;
733 Diag(C->Loc, diag::err_capture_does_not_name_variable) << C->Id;
742 Diag(C->Loc, diag::err_capture_non_automatic_variable) << C->Id;
755 << SourceRange(C->Loc);
765 tryCaptureVariable(Var, C->Loc, Kind, EllipsisLoc);
828 SourceLocation Loc = IntroducerRange.getBegin();
834 Loc);
836 = CXXConversionDecl::Create(S.Context, Class, Loc,
837 DeclarationNameInfo(Name, Loc, NameLoc),
840 Loc),
852 = CXXMethodDecl::Create(S.Context, Class, Loc,
853 DeclarationNameInfo(Name, Loc), FunctionTy,
896 SourceLocation Loc = IntroducerRange.getBegin();
901 NameLoc.NamedType.TInfo = S.Context.getTrivialTypeSourceInfo(BlockPtrTy, Loc);
903 = CXXConversionDecl::Create(S.Context, Class, Loc,
904 DeclarationNameInfo(Name, Loc, NameLoc),
906 S.Context.getTrivialTypeSourceInfo(ConvTy, Loc),