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

    <tr>
        <th>Summary</th>
        <td>
            Traverse friend declarations.
        </td>
    </tr>

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

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

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

<pre>
    foo.h
```
namespace internal {
void Factory();
}  
```

main.cc
```
#include foo.h
class Example {
  friend void internal::Factory();
};
```

The `foo.h` header is marked unused. This is probably due to the include-cleaner library not traversing `friend` declarations.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx0ks2u2yAQhZ8Gb0axMMR2vGCRq9TLrqLuxzCOaTFEgNPm7Ss7uUor5UqW-RmY8x1mMCV78USK1R-sPhW45ClE9cNm_L6EYgjmrsYQyonxE-NH1vDnty09zpSuqAmszxQ9OmDtxyN2C9ZAjzqHeGfiwETH5DPE2hPA24SP_4zWl1q_PyGk9dothuAfLu0wJfj2B-eroxcDwBgteQMbzCcjk0cmj1-ivebv2M4TAWv4Q7vhMBEaimATzBh_kYHFL4lMCefJpnX7GsOAg7uDWQhygDytr7U52GlH6CmCs0PEeAcfMuSIN4rJ-sums_GvQoa0w4jZBp_KwihpOtlhQapquoo3Qoi2mNS-HXU3cBq0aUXdyq5GXummHrHio-a8sEpwIfmBy6qSXDSlrkXdtWOL7SgJqz3bc5rRutK521yGeClsSgupZi8PonA4kEtbtwjh6TdsQSbE2jxRrXd2w3JJbM-dTTm9smSbHanzwx19FuZ_V0t0asr5mtYSiZ6J_mLztAylDjMT_ZrrOeyuMfwknZnoN4LERL8R_g0AAP__p8fa1Q">