<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/75707>75707</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
clangd: Included header `<concepts>` incorrectly identified as unused
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
wangtz0607
</td>
</tr>
</table>
<pre>
## Example
```cpp
#include <concepts>
static_assert(std::same_as<int, int>);
```
## Actual Behavior
![](https://github.com/llvm/llvm-project/assets/25856391/717c6de5-b8fd-41cc-a26f-20073990004c)
Changing `std::same_as` to other concepts defined in `<concepts>` such as `std::derived_from` and `std::convertible_to` yields the same behavior.
## Expected Behavior
`<concepts>` should not be identified as "not used directly" due to the presence of `std::same_as`.
## Environment
**`clangd --version`**:
```
clangd version 17.0.6
Features: linux
Platform: x86_64-unknown-linux-gnu
```
**Compiler flags specified in `compile_commands.json`**: `-std=c++20`.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyUVNGO6yYQ_Rryghzhwcbxgx-S7EbqW_8gwjC2ucVgAc7u9usr4lz1ZptWqoSCMmcGzhwfRsZoRofYkfpE6redXNPkQ_ch3Zj-ZII1u97rr44AJ8Dp-6ecF4uEvRF2fPwKti21LI8IcOOUXTVSws_KO4VLioS__1oWk0xGXWWMGBKBQ0ya8CPhxyhnvMpI-Nm4ROBM88bfCbSEn75d-cRjY3hUaZWWnnCSN-PDc0a5NUngMKW0xHwhXAhcRpOmtd8rPxO4WHv7uRVL8D9QJQKXTDRFAheoD7XgbUng0pSNEhrroj8MuqhKpQoJYiiAsYa3LWOsUpn3LxzOk3SjcSMlgv2jZcFo8tSnCQP9KRvVOBiHmhqXa74JKhiNq5qojE8Hagzmhvo6BD_nHOn0E668u2FIprd4TT5nfBm0OtI0Ic1saP_Qb_9C4vfPBVVC_Vrklxwnv1pNnU-0R2o0umQGg_rOGyDH14iaahNQJftFAKheMauRGS0BIzqF1A__ottLmu5mgnczuvSM3pdgyko3aloUNwzReJeZbxg_vjT49vdR9iiiZbNne7FBF5RpDZh9Ra1x6-cW_t3KNPgw5_DnQVxFVazuD-c_XHHPKka3_qex8zr7eTEWAx2sHCONC6pNws0XaoOvys-zdDruf8TnjnJScVfuTRE4EThBvmi_0x3XLW_lDruyYdBUbVmJ3dS10FS86quhUlrhAHpAVTd9A7VgjVJ8ZzpgwEsoRdnUAGKvhwbqBoTgLbRDy0nFcJbG7vNT2vsw7kyMK3ZN3bBmZ2WPNt7HDoDDD3oHCUCeQqG7P79-HSOpmDUxxb9PSSZZ7LbvkDv7bRs2mk4oNYbXz8Q45cPmrm8GXF323m4NtvvfU-HOOU-Fe09_BQAA___7vpRi">