<div dir="auto"><div><div class="gmail_extra"><div class="gmail_quote">On 30 Apr 2017 2:04 pm, "Kim Gräsman via cfe-dev" <<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I'm having trouble understanding what the respective Decls represent.<br>
<br>
When would there be more than one UsingShadowDecl for a UsingDecl?<br>
When would there be none? Why is the target decl only reachable from<br>
the shadows?<br></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">The UsingDecl represents the source declaration "using X::Y;"</div><div dir="auto">Each UsingShadowDecl represents one declaration that was made visible to name lookup by the UsingDecl.</div><div dir="auto"><br></div><div dir="auto">There can be multiple UsingShadowDecls if the UsingDecl names an overload set. There can be zero if all the declarations for a class scope UsingDecl are hidden by derived class members.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'm about to fix a bug in IWYU where we have a UsingDecl without any<br>
shadows, but I wanted to make sure I understand the concepts before<br>
committing to anything.<br>
<br>
Thanks,<br>
- Kim<br>
______________________________<wbr>_________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@lists.llvm.org">cfe-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-dev</a><br>
</blockquote></div><br></div></div></div>