For enumerators in unscoped enums that have names, even if they are not
scoped, we add the enum name to the scope so that users can find the
enumerators when fully qualifying them, for example: MyEnum::Enumerator.
This makes it more consistent with how the code is visually laid out.
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
drive-by nit: please pull this to a helper function.