cmCxxModuleMapper: factor out transitive usage computation

Clang will need this in the future.
1 file changed