<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/79463>79463</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clangd malfunctions within loops adorned with #pragma omp parallel for
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
nextsilicon-itay-bookstein
</td>
</tr>
</table>
<pre>
Using clangd-18 from apt.llvm.org, and VSCode.
Example code:
```
void foo(int *p, int N) {
#pragma omp parallel for
for (int i = 0; i < N; ++i) {
p[i] = i;
}
}
```
Hovering with the mouse over e.g. the `i` variable in the loop does not work so long as the pragma is there.
When the pragma is removed, the type information and initialization for `i` are displayed properly.

</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUU01v4zgM_TX0hbAhy98HH5pmgz31stjds2zRjqayZEhK2syvH0hJO-gAcxggQKj3LIp8fBTeq9UQjdAcoDlm4hLO1o2G3oNXWs3W5CqIWz5Z--oDKZNNVt7Gf70yK85amFXmZY-LsxuKPRRaX7fCuhX4Mwoj8b9_nq2kAtgR2NNf72LbNeFsJUH1dAehZY9fOl6tkrhYC7xXJiDwpz3mivEL8AGhOzzu8Wp3Yt0E2m3HXTihNWlcrLvzGEN8pFEI1REZVIcUPuNLDIEfgB_Ul7SIiDs0BwXNMV1SUH1Q0B0fb38GX4v_217JRWXeVDhjOBNu9uIJI4xUrEXCoGUKWoZX4ZSYNKEyCdfW7igteTQ24Jt1r-gtamtWFD598WhYpZP7kPX_M5lfaEebvZKMykUi3Pb4ymLdJoKyJo1GGRWU0Or7HUpqPSoTjlAqv2txI4m7szs5fSs-hC-jPptYCZoj8P4cwu7jPPkJ-GlV4XyZitluwE_RDo-_fHf2G80B-El4T8EDPzUN69quGYCf-DSQXFifd9RNeS1bmYuK2pzmeula0TT1MAMf7iVkcqzkUA0io7HsWFsOfd3V2XlcZE_9MMxt2w11ycqpHKamlK2sp7bn1ZKpkTNes5I3ZcvKsi6qbpkXxvquGpql7EuoGW1C6U8nZ8r7C43dULdVpsVE2qdl4dzQGyYSOI-748bU53RZPdRMKx_8zyxBBU3jfWNwE3q5mDnq7pNXlEnT9yikdYbk3UC_t3h2cXr8Y91TsVH31MyPAAAA__8mXTuM">