Create Decl::isInStdNamespace() and DeclContext::isStdNamespace() for namespace checking. This will replace six implementations of std namespace checkers.
The std namespace checker in the Itanium mangler has been left since it performs additional checks with its checker.
I think the getRedeclContext check should be in the callers, not here. Given:
namespace std {
}
... I would not expect the extern "C" DeclContext to claim to be the std namespace.