Lines Matching refs:SemaDiagnosticBuilder
641 Sema::SemaDiagnosticBuilder Sema::CUDADiagIfDeviceCode(SourceLocation Loc, in CUDADiagIfDeviceCode()
644 SemaDiagnosticBuilder::Kind DiagKind = [&] { in CUDADiagIfDeviceCode()
646 return SemaDiagnosticBuilder::K_Nop; in CUDADiagIfDeviceCode()
650 return SemaDiagnosticBuilder::K_Immediate; in CUDADiagIfDeviceCode()
656 return SemaDiagnosticBuilder::K_Nop; in CUDADiagIfDeviceCode()
658 return SemaDiagnosticBuilder::K_Immediate; in CUDADiagIfDeviceCode()
661 ? SemaDiagnosticBuilder::K_ImmediateWithCallStack in CUDADiagIfDeviceCode()
662 : SemaDiagnosticBuilder::K_Deferred; in CUDADiagIfDeviceCode()
664 return SemaDiagnosticBuilder::K_Nop; in CUDADiagIfDeviceCode()
667 return SemaDiagnosticBuilder(DiagKind, Loc, DiagID, in CUDADiagIfDeviceCode()
671 Sema::SemaDiagnosticBuilder Sema::CUDADiagIfHostCode(SourceLocation Loc, in CUDADiagIfHostCode()
674 SemaDiagnosticBuilder::Kind DiagKind = [&] { in CUDADiagIfHostCode()
676 return SemaDiagnosticBuilder::K_Nop; in CUDADiagIfHostCode()
679 return SemaDiagnosticBuilder::K_Immediate; in CUDADiagIfHostCode()
685 return SemaDiagnosticBuilder::K_Nop; in CUDADiagIfHostCode()
687 return SemaDiagnosticBuilder::K_Immediate; in CUDADiagIfHostCode()
690 ? SemaDiagnosticBuilder::K_ImmediateWithCallStack in CUDADiagIfHostCode()
691 : SemaDiagnosticBuilder::K_Deferred; in CUDADiagIfHostCode()
693 return SemaDiagnosticBuilder::K_Nop; in CUDADiagIfHostCode()
696 return SemaDiagnosticBuilder(DiagKind, Loc, DiagID, in CUDADiagIfHostCode()
718 SemaDiagnosticBuilder::Kind DiagKind = [this, Caller, Callee, in CheckCUDACall()
728 ? SemaDiagnosticBuilder::K_ImmediateWithCallStack in CheckCUDACall()
729 : SemaDiagnosticBuilder::K_Deferred; in CheckCUDACall()
731 return SemaDiagnosticBuilder::K_Nop; in CheckCUDACall()
735 if (DiagKind == SemaDiagnosticBuilder::K_Nop) in CheckCUDACall()
745 SemaDiagnosticBuilder(DiagKind, Loc, diag::err_ref_bad_target, Caller, *this) in CheckCUDACall()
749 SemaDiagnosticBuilder(DiagKind, Callee->getLocation(), in CheckCUDACall()
752 return DiagKind != SemaDiagnosticBuilder::K_Immediate && in CheckCUDACall()
753 DiagKind != SemaDiagnosticBuilder::K_ImmediateWithCallStack; in CheckCUDACall()
790 auto DiagKind = SemaDiagnosticBuilder::K_Deferred; in CUDACheckLambdaCapture()
792 SemaDiagnosticBuilder(DiagKind, Capture.getLocation(), in CUDACheckLambdaCapture()
796 SemaDiagnosticBuilder(DiagKind, Capture.getLocation(), in CUDACheckLambdaCapture()