[clang] cc1: Report an error for multiple actions unless separated by -main-file-name (PR #91140)

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Mon May 6 07:09:41 PDT 2024


================
@@ -134,6 +134,8 @@ def err_fe_no_pch_in_dir : Error<
     "no suitable precompiled header file found in directory '%0'">;
 def err_fe_action_not_available : Error<
     "action %0 not compiled in">;
+def err_fe_invalid_multiple_actions : Error<
+    "action %0 is specified, another action is not allowed: %1">;
----------------
erichkeane wrote:

```suggestion
    "'%1' action ignored; '%0' action specified previously">;
```

Maybe something like this?  I dont think the original fits very well?  Also the single ticks around the actions is, IMO, better for readability.

https://github.com/llvm/llvm-project/pull/91140


More information about the cfe-commits mailing list