================
@@ -421,22 +445,25 @@ static void emitDiagnostic(const Expr *MovingCall, const 
DeclRefExpr *MoveArg,
   const SourceLocation MoveLoc = MovingCall->getExprLoc();
 
   Check->diag(UseLoc,
-              "'%0' used after it was %select{forwarded|moved|invalidated}1")
+              "'%0' used after %select{it was forwarded|it was moved|it was "
+              "invalidated|a suspension point}1")
       << MoveArg->getDecl()->getName() << Type;
-  Check->diag(MoveLoc, "%select{forward|move|invalidation}0 occurred here",
+  Check->diag(MoveLoc,
+              "%select{forward|move|invalidation|suspension}0 occurred here",
               DiagnosticIDs::Note)
       << Type;
   if (Use.EvaluationOrderUndefined) {
     Check->diag(
         UseLoc,
-        "the use and %select{forward|move|invalidation}0 are unsequenced, i.e. 
"
+        "the use and %select{forward|move|invalidation|suspension}0 are "
+        "unsequenced, i.e. "
         "there is no guarantee about the order in which they are evaluated",
----------------
vbvictor wrote:

Could you please create a one long line and let formatter redo the whole chunk.
Now it seems strange with short string in between long

https://github.com/llvm/llvm-project/pull/172566
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to