<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/71213>71213</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clangd: autocomplete prioritize types over other names.
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
AbdullahAmrSobh
</td>
</tr>
</table>
<pre>
Given the following two declarations
```c
void vkResetFence();
struct PFN_vkResetFence;
```
typing `vkReset`... would recommend the symbol `PFN_vkResetFence` as the first options instead of `vkResetFence`, even though I clearly intent to type `vkResetFence`
![image](https://github.com/llvm/llvm-project/assets/9056576/ea150de0-ac0d-4ce0-a4f2-00c54292a76f)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUUtGumzAM_RrzEhWFQFJ44KF3FdNepmn7gCkkLmQLBCWmVff1E_R2u9P2MgmRWPaxzzmxTskNM2IL8gXkOdMrjSG2p96u3uvxNMUvoR-zPth7-95dcWY0IrsE78PNzQOjW2AWjddRkwtzAn4GfgLFH595xNfgLLt-_4wJqcPZIIgaRAPlyyOfKK6G2Kfu49c_qp75X_1ew_1P92VjAIq_YkDxPM_ZLazesogmTBPOdiec7lMf_Fb71wzFmU4PVS4mYmHZhTA3J0JtWbi8GfGEgHjH8OFGWIeRfWDGo47-ztxMOBOjwOi-4D-g7K0GEAXIFzfpAUGeQdQj0ZKgPIHoQHSDo3HtcxMmEJ331-dxWGL4hoZAdDolpASia7hU8qhAdKgLyS3ygzbcHiqz3aqLOHBuZCUaoY_qsrm_M8hsW9qmbHSGbaGahpdVJZtsbPuiroRREm115BprWTYahS6FVaoqapm5VnBRFgUvi5pz2eRWqErpS6E0GqlUDRXHSTufb5TzEIfMpbRieyxEUWZe9-jTvndCzHhjexKE2NYwtrvMfh0SVNy7ROl3F3LksTVez4OF8sT0SsGEafFIyJboQnTkfuD-AImFK0YWaMTIZj1hyrM1-va_fd7ZbT7v7H8GAAD__y29A5o">