<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/96034>96034</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[[clang::lifetimebound]] is missing if the function parameter doesn't have a name.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang:frontend
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
hokein
</td>
</tr>
</table>
<pre>
See the example:
```
int* good(const int& abc[[clang::lifetimebound]]);
int* bad(const int& [[clang::lifetimebound]]);
```
The AST looks like:
```
-FunctionDecl ... good 'int *(const int &)'
| `-ParmVarDecl ... abc 'const int &'
| `-LifetimeBoundAttr
`-FunctionDecl ... bad 'int *(const int &)'
`-ParmVarDecl ... 'const int &'
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk02PmzAQhn-NuYyCnIHwceBAGnHqodKuejd4AHeNHdkmav99ZcK22X5oW8lyFEvz-HmtF-G9mgxRw05ndrokYg2zdc1sX0iZpLfyW8P4hfH2iQjCTEBfxXLVxLL2fr7vBd_X9leZwLCFyVrJsBqs8QG2swJEP2xXnQctzBQxWavVSEEt1NvVSHa6xIU1y86PV-zMXvyG_G_eW9n7_jwTtE_PoK198aDVyzsRD91qhqCsudCgAdI03eICw1KZAAzbR01gWEQFLHdY-QFYwQ-fhFs-C7cxIkL0QyT8MvcwBNvYxz3gOQZsQ3Dww_GtV2T24l-t4I9Of_d5fZFENpmss1ok1BzLY1VWeORFMjdUY1WWVNUFz7PyJPOqonEcsRilKItMJqpBjjkvjjUvscIilQNlnPNM4ED5qecs57QIpVOtb0tq3ZQo71dq6oJneaJFT9pv3UV8LcDorAlkJEOMjXZNHD306-RZzrXywf-EBRX03v13CgTKw6K8V2YCNW6fwri_NFyFEwsFciAtecOwDDCLG4EAIxZKk9XpZg7h6iMeO4bdpMK89ulgF4Zd1Nl_Dldnv9AQGHZbUM-wu2e9Nfg9AAD__5CfEZ4">