<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/99295>99295</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[Clangd] No (good) autocomplete for new files
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
JVApen
</td>
</tr>
</table>
<pre>
- Startup vs code with clangd (18.1.3) on windows (might be irrelevant)
- Create a new header file my_specialclass.h
- Add following content:
````
namespace My
{
class SpecialClass
{
void qqqqqqqqqqqqqqq();
};
}
````
- Create a new cpp file my_specialclass.cpp
- Add following content:
````
void My::
````
- Notice that you get an auto-complete for SpecialClass
- Select the auto-complete
- Effect: `SpecialClass` is inserted
- Expected: `SpecialClass` is inserted + include to my_specialclass.h was added
- Extend the content to:
````
void My::SpecialClass::
````
- Effect: no auto-complete
- Expected: get auto-complete for function `qqqqqqqqqqqqqqq`
- Extend the content to:
````
void My::SpecialClass::qqqq
````
- Effect: no auto-complete
- Expected: get auto-complete for function `qqqqqqqqqqqqqqq`
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzMVMGO2jAQ_RrnMgI5DgFyyAGWcqi0e1mp18rYk8SVY6fxBMrfVw4INrusKlU91IqU2J438-bZeTIEUzvEkuVblu8SOVDj-_Lrt02HLjl4fS5hBq8kexo6OAZQXiOcDDWgrHS1BibW6XqezjMmCvAOTsZpfwpxvTV1Q3BAMH2PFo_SERMF4zvGNzCDpx4lIUhweIIGpcYeKmMR2vP30KEy0iorQ5g3N8hGa6i8tf5kXA3KO0JHLNtcAtiS359xxckWQycVwvP5GrPaXrMBwJgeXi-1nuLkvjcJvIyjNxp-TgcT69hTtn2L3N3m8fsTbu8VUF33uH3VdX8twEj5-RwjPg-CGbx4MgqBGklw9gPUSCAdyIH8TPm2s0gIle8fiTWDV7SoCKjBKeIW8KWqUEWewJZ8kmLJwQQwLmBPqO-AXx2quPBHCDCxBeOUHTQC-Y-XB04ygNR6kp3Q6ZHvVUIgfxMIHig00XHC5o2yj4CT5p1_qM-7fkftPwhfDU6R8S4WeX8HJ9X-dW9jhf-kv0SXmS6yQiZYpiuRCl6ssixpykzJPOXIpaxknh7U8iDXfLXWoigwXRc8MaXgYsFX6YoXi3WezXmeFzrnqVY6W6RiyRYcW2ns3NpjO_d9nZgQBiyLQhR5YuUBbRhdUoj4t46bTIhomn0ZMbPDUAe24NYECvcsZMiO9vo0-iXLd_DiozvW3uvomVGKiRIxfTSCkAy9LRuibjwJsWdiXxtqhsNc-ZaJfaxxfc263v-IpyD2I7PAxP7C_FiK3wEAAP__gpbIlg">