[cfe-dev] UsingDecl vs UsingShadowDecl

Kim Gräsman via cfe-dev cfe-dev at lists.llvm.org
Sun Apr 30 14:04:13 PDT 2017


Hi all,

I'm having trouble understanding what the respective Decls represent.

When would there be more than one UsingShadowDecl for a UsingDecl?
When would there be none? Why is the target decl only reachable from
the shadows?

I'm about to fix a bug in IWYU where we have a UsingDecl without any
shadows, but I wanted to make sure I understand the concepts before
committing to anything.

Thanks,
- Kim



More information about the cfe-dev mailing list