<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/96123>96123</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [clangd] Data members within const member functions are not highlighted as "readonly"
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          torshepherd
      </td>
    </tr>
</table>

<pre>
    The following example shows the issue:

![image](https://github.com/llvm/llvm-project/assets/49597791/878d1be2-47a4-4071-b2fa-084c82f8cf08)

I would expect `Member` to be highlighted orange ("readonly" semantic modifier) within the const member fn. I would also expect the by-copy capture `NonconstLocal` to be highlighted "readonly".

In general, SemanticHighlighting never propagates const highlighting downwards:

![image](https://github.com/llvm/llvm-project/assets/49597791/72b5e08d-c5d5-470e-b0b9-54beeed72417)

This is only an issue in cases where the top-level const object is implicit (in lambdas and in const member fns).
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJy8U8_OozYQfxpzGRHBAAEfOHQbRa3U9tJ9gbE9AVfGRrbzsXn7CjZRN5966aUXuMyMf38pJTt55lF0X0R3Keie5xDHHGKaeZ05mkIF8xi_zgy34FzYrJ-Av9GyOoY0hy1BnhlsSncWzU-iuojq9cVadF_sQhOL7iJwmHNe0z6EV4HXyeb5rk46LAKvzn28fuUaw1-ss8ArpcQ5Cby2spN9L2uB16EfTK0Yy7antmyrvi4V3qishlYPeBv0rRoEyh-B_ApbuDsD_G1lnUGcq995URzFuYIcQDHMdpqdnebMBkIkPzEIHARiZDLBu4dAhMQL-Ww1LMHYm-UoUMJm82z9oYEOPmVYjtNw8yd4vUsuhdfj-6B6lDqsD9C05nvkHdAfwR_rvwVN7t9xvaM5vRH0MLHnSE7gz_DnE-cvr-XdMs8fHGGNYaWJMqcn2vnHGRM2v1E06X8xskfVcTWYUnemK9u-4lJVSpZdq5jZ9NjW_Scjv842gU2wawDkv6cOrAdNiRNsM0c-FM5hLR1_sHvSDGoHsq_aZXVW27z7az04WpShBOTNcefdwiRQngozNkY2kgoe674ehkYOUhbzKDvNaM7qhkRqoBZZd12vB9m2FdWKCjtihW11riU2Td3IU9P22Dc01GfVUV91oq14IetOu1ynEKfiYDTKc41N4UixS0czET1vz5Ih7kWN4yGxuk9JtJWzKad_rmSb3VFp7chPRnQXuFCmJ7H0Cu0727vX2QafgCKDD_ktfJQ-5a-4Rzf-5xwcDPYcfGf4MeLfAQAA___rJnQY">