[PATCH] D27604: [Driver] Add compiler option to generate a reproducer

Mehdi AMINI via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Dec 9 09:29:34 PST 2016


mehdi_amini added inline comments.


================
Comment at: include/clang/Basic/DiagnosticDriverKinds.td:95
 def err_drv_force_crash : Error<
-  "failing because environment variable '%0' is set">;
+  "failing because %select{environment variable|option}0 '%1' is set">;
 def err_drv_invalid_mfloat_abi : Error<
----------------
Is it worth it? What about `"failing because %1 is set">;`

And then later:

```
Diags.Report(diag::err_drv_force_crash) << "option '-gen-reproducer'";
```


https://reviews.llvm.org/D27604





More information about the cfe-commits mailing list