<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/141749>141749</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
[clangd] [lrt] [Vulkan-hpp] LanguageClient clangd for lrt crashes in a project with vulkan-hpp
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
Txordi00
</td>
</tr>
</table>
<pre>
I constantly get the following crashes:
```
LanguageClient clangd for lrt: The command "/usr/lib64/llvm20/bin/clangd --background-index --header-insertion=never --limit-results=100 --limit-references=0 --clang-tidy=0 --background-index-priority=low --rename-file-limit=0 --compile-commands-dir=/home/jordi/Documents/lrt/build/Desktop-Debug/.qtc_clangd --use-dirty-headers" terminated abnormally. (see logs in "/tmp/QtCreator-lBaaPB/lspclient.ghxeeY.log")
LanguageClient clangd for lrt: Unexpectedly finished. Restarting in 5 seconds.
```
in a project which uses the vulkan-hpp helper library. It happens when trying to autocomplete functions from certain headers, in this case, `vulkan_funcs.hpp`. I know when it's about to happen because the autocompletion preview shows the functions without arguments. It makes Qt Creator crash and it's extremely annoying. I attach the log here. Maybe the mistake is on my end and I have something not properly configured? The code compiles alright both with gcc and clang.
[lspclient.ghxeeY.log](https://github.com/user-attachments/files/20482676/lspclient.ghxeeY.log)
</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJyMVN-L4zYQ_muUl8HGkX8k-5CH3Q2GhRZ65Vro0yFLY0sXWXKlcbL-74sc7-71aI-DgOIRmvm-me8bEaMZHOKJ1U-sPu_ETNqH0-dXH5Qpil3n1XJ6AeldJOHILjAgAWmE3lvrb8YNIIOIGiMrH1nxyJpi-xWPvwg3zGLAZ2vQEUgr3KCg9wFsIFY-wmeNIP04CqeAcc54O8fAeGtN11TptNeRF4y3nXGMt1uCLOuEvAzBz05lxil8hSzTKBSGzLiIgYx3rDw7vGKALLNmNJQFjL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