For example, this case was missed when looking for different but canonical
namespaces. UseContext in this case should be considered as in the canonical
namespace.
namespace a { namespace b { <FromContext> } } namespace a { namespace b { namespace c { <UseContext> } } }
Added some commenting.
GetNextNamedNamespace