<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/118684>118684</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clangd] Allow indexing of exposed resource directory headers
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
jhuber6
</td>
</tr>
</table>
<pre>
Clang provides several intrinsic headers inside of its resource directory. Most of these are intended to be present in user code, however they prefer to use reserved keywords as they are commonly a part of system headers. These functions are not indexed, which makes working with them very difficult. My specific use-case is from the GPU utility header I've recently added that wraps around common builtins for GPU vendors https://godbolt.org/z/rvTEaeoP3. It's difficult to use this because `clangd` does not autocomplete for any of them. I have https://github.com/llvm/llvm-project/pull/118674 which is the alternate approach to fix this, but the headers are better-off keeping internal names.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUk8GOpDgMhp8mXKxGVKAK-sBhdmZr1YeR5jD7ACExRaZDjGJDNfv0qzBVGmm1lzlBFMf-_P-2Yfa3iNir8x_q_KUwq0yU-h_TOmC6FAO5vf8cTLzBkmjzDhkYN0wmgI-SfGRvYULjMDHkk0OgEbwwJGRak0VwPqEVSnsJX4kl38uEjGAS5iwYHToQggFhScgYBXyElTGBJYdKf4aJ7rlsfrjnoDH_U47JdTBt6OAd9zslx2D4Z1zOb2meKYYdDCwmHcV5Z8H5SV3C9wNmXKMVT5GPZ5Eyg8MPdLn8ffJ2gtm8I8Od0ruPN7h7mXKdGTZMOzg_jt6uQUr4ugMvaP3obSZ8sYYRPMOYaM4v4K9vf8MqPnjZHxjwpnS75WYsRsm47hBlMgL3ZJZMRWt0j35gWH0QHxlGSke6DaOjxDCJLKzqT0pflb7eyA0UpKR0U_r6j9LXtH3_0yB9q0t4E6Vb_gX-FFQmzzCgNfmgLpXN_jt1qcAR8iGNWYUszUtAwQPBxP3h61zCG0xmw_-ieJnWobQ0K30NYXt-XpZEP9CK0tdlDUHp6-nUXdrmobk_vAQTBFM0gmCWJZGxU6Yd_cdBmy0aVjkin8OYXRxQBNMLjSO8Iy7ZtTxvKZoA0czIZeH62r3Wr6bA_tTWdV13um6Lqe9O3ak6D21Td111bjpjX9tmbJoGT-b17OrC97rSzUlXzak7V3VbjhVWVVO3rcMBq4tWTYWz8aHMXWYHCs-8Yp_b65oimAEDH3undcQ7HLdK67yGqT-kGdYbq6YKnoV_pREv4VjYhzHnL_ApBLr_HNjcJI2AHwsxuv_ZwqdCxZpC_9seHZT8cKlriq3X_wYAAP__5Ct5tA">