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

    <tr>
        <th>Summary</th>
        <td>
            IWYU export is not respected for standard library headers
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang-include-cleaner
      </td>
    </tr>

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

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

<pre>
    Given the following code, the include "export.h" header is diagnosed as unused, which should not.

```cpp
// export.h
#include <string_view> // IWYU pragma: export

// main.cpp
#include "export.h" // bug: unused
std::string_view abc;
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0Ul2P2yAQ_DX4BcXCYOfjgYfcXVP1B1RVnyoMa0NLwGIh6f37yg66XiudZYG02plhZlchujkASDI8keGlUSXbmKSNv8CFZozmVX52Nwg0W6BT9D7eXZipjgYIf96qLmhfDFDCOfxeYsqtJZxTC8pAog6pcWoOEcFQhbSEgmBW7N06bSnaWLyhIeaWsBfCzvXcs8evl6VW-IXwC32TqEXxJi-eMScX5h83B3ciPtGK-PLt-1e6JDVfFRHnSvCP1qPvqlxo38mJD4zV9rHMK131s2EwGyLORJzfPYSqURPx9J-rxkhhTuKkGpDd_iB6MRyHobHSCN0djxMoxgzr-gmmY8c61ncKxv1xEI2TnHHBuu07iKE99FPHoNc9dD10J0F6BlflfOv97drGNDcOsYAcTid-aLwaweM2bc61V2HeVZs77UEFSITzdRGSXPG7scxIeuYdZvzLmF32ILdgH8msYw4x0wS4gM5g6BQTxayCUclQ78ak0mvdCWxK8tLmvOAa1xbn7LItY6vjlfDLqlOv3ZLiT9CZ8MtmAwm_bE7-BAAA__9J_Nmq">