<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/69714>69714</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
misc-unused-using-decls incorrectly reports using as unused when it is used in elaborated-type-specifier
</td>
</tr>
<tr>
<th>Labels</th>
<td>
clang-tidy
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
ilya-biryukov
</td>
</tr>
</table>
<pre>
```
namespace ns {
struct Foo {};
}
using ns::Foo; // reported as unused
struct Foo * a;
```
See https://gcc.godbolt.org/z/WM58br3q1.
It seems that Clang does not store enough information in the AST right now as information about usings gets lost when parsing declaration specifiers.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxckk9vpDgQxT-NuZRAbtMEOHDobIS0hz1lpT37TwW8Y2zGVSTq-fQjoDXJjISwZbue6v1eaSI_RcRBNM-ieSn0xnPKgw93XRqf79u39F6Y5O6DeJKPT74IeYt6QVq1RYgEon0-T4E4b5ZhTOk4bF9E_bja98dmIx8niCTqm6hvY0qifgahRqFGyLimzOhAE2xxI3RnzVdZdQN9lJyyv7f1iggz83qoH5qTtdWUnEmBq5QnocYfQo3__dN0JtffL9VD5vj_zUCICwHPmuGvoOMELiFBTAzEKSNgTNs0g49vKS-afYrgI_CMcHv9F7KfZoaYPnYDX99okzaGwzrBhEwQEjF8zBhh1flA4tAGnc_3tKL1bx4zVYUbatfXvS5wuDz1bSevreqKedBth8pYZ7Vsne1RatOZRjvbXjtd27rwg5KqvkglL0o1qqu6RlnXI0rTtbLvG3GVuGgfqhDel51O4Yk2HJ769nItgjYY6JgMpewOo2Tv7kKpfVLysBeVZptIXGXwxPQpw54DDosnW54xlof1cre4g7EpZ7Qc7o_E6UTzGftJxjP4_QrdDhmDNilrRlfyfcXyF6Niy2H4I3XP82Yqmxahxr2tx1KuOf2PloUaD6sk1Hi4_RkAAP___yj75g">