underlying declaration of a NamedDecl happens to always have the same name
and identifier namespace as the decl itself today).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@256529
91177308-0d34-0410-b5e6-
96231b3b80d8
} // end anonymous namespace
NamedDecl *VisibleDeclsRecord::checkHidden(NamedDecl *ND) {
- // Look through using declarations.
- ND = ND->getUnderlyingDecl();
-
unsigned IDNS = ND->getIdentifierNamespace();
std::list<ShadowMap>::reverse_iterator SM = ShadowMaps.rbegin();
for (std::list<ShadowMap>::reverse_iterator SMEnd = ShadowMaps.rend();