<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/73399>73399</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
Simplify initialisation diagnostic when types are cv-qualified
</td>
</tr>
<tr>
<th>Labels</th>
<td>
good first issue,
clang:diagnostics
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
cjdb
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
cjdb
</td>
</tr>
</table>
<pre>
I'd like to revise the diagnostic
```
error: cannot initialize a variable of type 'const icun_status' with an rvalue of type 'int'
```
to
```
error: cannot initialize a constant of type 'icun_status' with an rvalue of type 'int'
```
The `const` in this diagnostic doesn't appear to be doing much other than ensuring (unnecessary) technical accuracy. I don't think similar nouns exist for `volatile` and `restrict` don't exist: they can remain `variable`.
I have self-assigned, but this is a good candidate for someone looking to get started with Clang, and I'll happily hand it off in that case.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysU8Gu4zYM_Br5QiRwZCeODz6kbxHgndt7QUu0xX2K5Ep0tunXF3LS7luglwILGDZMyzPD4RBz5jkQDer4i9LafLWj0lodv1S4iotpKJVqjPYxvCvdWfD8QSAREt05E4gjsIxziFnYqPqLqi_qVL-u7ZVSikk1FzAYQhTgwMLo-S8ChDsmxtETxAnksRAo3ZkYsgCbNfyeBWXNSnfwjcUBBkh39OsPxzmI0t1_Ukv8_4o2dgzyA8VP0PK8_-YI1KneSNSpBg4gjvMnD8FGykHpTgCXhTAVt0cCGznMcFuNgyiOEojDABTymsoHpc9rCGQoZ0wPpXsQMi6wQQ9ozJrQPPbwDjY-scVx-IDMN_aYIMQ1ZKA_OQtMMRWJ9-hR2FNRicGWUqIsic0m_B-c7Z_ipTh6FEMh0Q05bBCv4apTvf9swjs4vBNk8tPuFUCr9BuMqzzd4AwIc4y2AFq2KLTJyvFGMRD4GD9K0xJhJoEsmITscy5vHsNc0IroklnvweGysH-AKzUuo52ezqOAwUz7yg6N7ZseKxoOXV33rda6rdxwPOvpeKx1347NdGpa6prG6oYM9e0ZR1vxoGvdHA76eOiPXd3u23o62LY_6VN9aDSdVVsXQ_ze-_ttH9Nccc4rDV3T9H3lcSSfX9u3dTxxKukvZ8om6reylltPzeV7SvJrS9NQYHfjOmfV1p6z5O9EwuJp-JVvi-fp8W_MMwrH8Dly3xyFLcMZMBGY--6PFT1PTLZakx-cyJJVc1H6qvR1ZnHruDfxpvS1kL0euyXFr2RE6esmPyt93br8OwAA__9HeG6F">