Lines Matching refs:SemaRef
989 static void checkExprLifetimeImpl(Sema &SemaRef, in checkExprLifetimeImpl() argument
1050 SemaRef.Diag(DiagLoc, diag::warn_dangling_lifetime_pointer) in checkExprLifetimeImpl()
1071 SemaRef.Diag(DiagLoc, diag::warn_unsupported_lifetime_extension) in checkExprLifetimeImpl()
1082 SemaRef.Diag(DiagLoc, diag::warn_dangling_variable) in checkExprLifetimeImpl()
1097 SemaRef.Diag(DiagLoc, in checkExprLifetimeImpl()
1112 SemaRef.Diag(DiagLoc, diag::warn_dangling_lifetime_pointer_member) in checkExprLifetimeImpl()
1114 SemaRef.Diag(ExtendingDecl->getLocation(), in checkExprLifetimeImpl()
1120 SemaRef.Diag(DiagLoc, shouldLifetimeExtendThroughPath(Path) != in checkExprLifetimeImpl()
1130 SemaRef.Diag(ExtendingDecl->getLocation(), in checkExprLifetimeImpl()
1166 SemaRef.Diag(DiagLoc, in checkExprLifetimeImpl()
1170 SemaRef.Diag(Member->getLocation(), in checkExprLifetimeImpl()
1181 SemaRef.Diag(DiagLoc, diag::warn_dangling_lifetime_pointer) in checkExprLifetimeImpl()
1184 SemaRef.Diag(DiagLoc, RK == RK_ReferenceBinding in checkExprLifetimeImpl()
1201 SemaRef.Diag(DiagLoc, diag::warn_ret_stack_addr_ref) in checkExprLifetimeImpl()
1205 SemaRef.Diag(DiagLoc, diag::err_ret_local_block) << DiagRange; in checkExprLifetimeImpl()
1211 SemaRef.Diag(DiagLoc, diag::warn_ret_addr_label) << DiagRange; in checkExprLifetimeImpl()
1213 SemaRef.Diag(DiagLoc, diag::warn_ret_stack_addr_ref) in checkExprLifetimeImpl()
1222 if (SemaRef.getLangOpts().CPlusPlus26 && in checkExprLifetimeImpl()
1224 SemaRef.Diag(DiagLoc, diag::err_ret_local_temp_ref) in checkExprLifetimeImpl()
1227 SemaRef.Diag(DiagLoc, diag::warn_ret_local_temp_addr_ref) in checkExprLifetimeImpl()
1253 SemaRef.Diag(FD->getLocation(), in checkExprLifetimeImpl()
1261 SemaRef.Diag(VD->getLocation(), diag::note_local_var_initializer) in checkExprLifetimeImpl()
1273 SemaRef.Diag(Elem.Capture->getLocation(), in checkExprLifetimeImpl()
1303 void checkExprLifetime(Sema &SemaRef, const InitializedEntity &Entity, in checkExprLifetime() argument
1308 bool EnableLifetimeWarnings = !SemaRef.getDiagnostics().isIgnored( in checkExprLifetime()
1310 checkExprLifetimeImpl(SemaRef, &Entity, ExtendingEntity, LK, in checkExprLifetime()
1314 void checkExprLifetime(Sema &SemaRef, const AssignedEntity &Entity, in checkExprLifetime() argument
1316 bool EnableLifetimeWarnings = !SemaRef.getDiagnostics().isIgnored( in checkExprLifetime()
1325 checkExprLifetimeImpl(SemaRef, /*InitEntity=*/nullptr, in checkExprLifetime()