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

    <tr>
        <th>Summary</th>
        <td>
            [clangd] Unexpected code complete suggestion to members in static method
        </td>
    </tr>

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

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

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

<pre>
    Code complete should not suggest `member` since it's not a static member. 

```cpp
struct A {
  int member;
  static void m() {
    mem^
  }
};
```

```shell
$ clang++ -cc1 -std=c++23 -fsyntax-only -code-completion-at=$PWD/ex.cpp:4:8 ex.cpp
COMPLETION: member : [#int#]member
```

[Godbolt.org example](https://godbolt.org/z/GdzfeW17o)


</pre>
<img width="1" height="1" alt="" src="http://email.email.llvm.org/o/eJxkUk1v4zgM_TX0hXCgUJadHHxw6rpY7Hbbwy56liUl1kC2AkvuJP31A3-gxXQAAbaoR_I98skQ7GUwpgRxAlEncoqdH8vne-xGc5d_J63X9_LBa4PK91dnosHQ-clpHHzEMF0uJkSEnPWmb80IOcNgB2XQRqAiLCiJIcpoFa6YHQKr5pOz9ajrFVgV4jipiBVCcQJWIdohbhnA18hW5t1bjT3QAej4icYZC-JxuUBRzw2Kes387PStceiMc3OAMlRODhegE9AJU6X2mIaogddqjRHH9BzuQ5S31A_ujqny2qTbUKwfUhmB10DZ61sN1JjbbpbFqwx4dcDtyqqHl-fXfx7_--vlX-DVJg_n33kBxO0QgTiIehP-J3dxevK69S7u_HhBc5MzARA10KGL8RqAV0ANUHP5ggE1H0DNk_44m7d94YGOa7VEl1wf-VEmptwXQohDJihPupKfzzJTLOemyPOsZUIxIfekWiGV2R_bxJbESLDD_shyIpbvNFF-zOjMMsNJSg4ZM720bufcez-TSGwIkyn3IqOCEidb48JiO6LB_MTlFYhmF47lnJS20yVAxpwNMXyViTa6xa_LxjSIGv8fzO1qVDQa1e9WXf1p_YDRb9MOaIcvQ8bO62QaXflteDZ2U7tTvgdq5tbbJ72O_odREahZCAegZlP0XtKvAAAA__-cgwA6">