diff --git a/clang/include/clang/module.modulemap b/clang/include/clang/module.modulemap --- a/clang/include/clang/module.modulemap +++ b/clang/include/clang/module.modulemap @@ -71,10 +71,17 @@ textual header "Basic/RISCVVTypes.def" textual header "Basic/Sanitizers.def" textual header "Basic/TargetCXXABI.def" - textual header "Basic/TokenKinds.def" module * { export * } } +module Clang_Basic_TokenKinds { + requires cplusplus + + header "Basic/TokenKinds.h" + textual header "Basic/TokenKinds.def" + + export * +} module Clang_CodeGen { requires cplusplus umbrella "CodeGen" module * { export * } } module Clang_Config { requires cplusplus umbrella "Config" module * { export * } }