<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/64243>64243</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [Clang] Wrong help text for `--offload-host-device` flag
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          AntonRydahl
      </td>
    </tr>
</table>

<pre>
    I have been making an overview of offloading related flags, and I stumbled upon the help text for `--offload-host-device`. I am pretty sure that the help text is wrong. It says
```bash
$ clang --help
  --offload-host-device   Only compile for the offloading host.
```
, but at the same time the flag `--offload-host-device` is an alias of `--cuda-compile-host-device` as far as I can see from `clang/include/clang/Driver/Options.td:2883`:
```C++
def cuda_compile_host_device : Flag<["--"], "cuda-compile-host-device">, Alias<offload_host_device>,
  HelpText<"Compile CUDA code for both host and device (default). Has no "
  "effect on non-CUDA compilations.">;
```
May I correct the help text to `Compile the code for both host and device` or something like that?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMVF2vozYQ_TXmZQRybPL1wENuUrR5qFaqWvXxasADuGvsyDa5m39fGYi6jbZXlRBI4_HMOXPOgCHo3hJVbPvGtpcMpzg4X51sdPa3h8LBZI1Tj-oKA94JGiILI37Ttge04O7k75o-wHXgus44VOnEk8FICjqDfWDiDGgVXCHEaWwMKZhuzkIcCAYyN4j0PULnPLAdz_O1TD64EHNFd90S2_ECroAj3DzF-IAweYI4YHwpogN8eGf7Aq4RAj4C4xfGT2zHl6fBMKwhUUJr0PaQ5-n-EgX4aX8A-GrNA1o33rShGWtq_APjlF28dHt2OkMzRVjBBhwJok6vgeYBfUY7MUILaDSGNOM5tZ0U5iuW13wM0KFPnyu0aCEQQefdmG7OfJmotW3NpIiJ-hm5eH0nz0T99Ra1s6GIismTOBxkoiFPL8TOTLylZ44q6iAhel8RvSdE7-vgmDxBbbBn8pz8JUSeMyHY9pKmwoT4TypCMPlLSjol6kye1_n8WH3JeCr3hcztd_oeUyshzqtU5z8uJ2idWkRrXBxmqWZDPjGKg6IOJxOZOBbwBQNYl8A9KzMhqOuojeAsWGfztWjqgMu8Vrzy7acW-BUfSQ7nfSryb8tGl6R5wk1nn6JNGjsPwY0Uh2Q8o78tq8BknalKqqM8YkbVZnfk-z0_cJkNVdOpkm_xWO7LptuXm0N32EveNruj2OMBN5muBBeS7-WGCymFLKjjB9WUUrVHXm5xw0pOI2pTGHMfC-f7TIcwUbUrRSkzgw2ZUC0SW_qA-XBROvNVupM3Ux9YyY0OMfxTJepo5n_Pebbi9gJ_pgX-_z-GeYWyyZtqiPEWkllFzUTd6zhMTdG6kYk6tVs_-c27v6iNaQ8SyMBEPZP4OwAA__87W5mr">