[cfe-dev] DeclContext::addHiddenDecl vs NamedDecl::isHidden
Vassil Vassilev
vasil.georgiev.vasilev at cern.ch
Thu Oct 10 08:03:34 PDT 2013
Hi,
Is there any particular reason DeclContext::addHiddenDecl to not call
NamedDecl::setHidden() on the added declaration?
It feels like an inconsistency to me, because one can add a 'hidden'
NamedDecl and later on to call removeDecl. In that case the DeclContext
would assert because the name wasn't found in the lookup table. Is there
something I missed?
Thanks,
Vassil
More information about the cfe-dev
mailing list