================
@@ -73,6 +73,8 @@ TYPE("objective-c++-header-cpp-output", PP_ObjCXXHeader, 
INVALID,"mii",   phases
 TYPE("objective-c++-header",     ObjCXXHeader, PP_ObjCXXHeader, "h",      
phases::Preprocess, phases::Precompile)
 TYPE("c++-module",               CXXModule,    PP_CXXModule,    "cppm",   
phases::Preprocess, phases::Precompile, phases::Compile, phases::Backend, 
phases::Assemble, phases::Link)
 TYPE("c++-module-cpp-output",    PP_CXXModule, INVALID,         "iim",    
phases::Precompile, phases::Compile, phases::Backend, phases::Assemble, 
phases::Link)
+TYPE("c++-std-module",           CXXStdModule, PP_CXXStdModule, "cppm",   
phases::Preprocess, phases::Precompile)
+TYPE("c++-std-module-output",    PP_CXXStdModule, INVALID,      "iim",    
phases::Precompile)
----------------
naveen-seth wrote:

I might be misunderstanding, but it looks like we already have multiple file 
kinds sharing the same extension here:

https://github.com/llvm/llvm-project/blob/c94e5f327f47821e29f21b39ef1dc511c91341d9/clang/include/clang/Driver/Types.def#L69-L71

https://github.com/llvm/llvm-project/blob/c94e5f327f47821e29f21b39ef1dc511c91341d9/clang/include/clang/Driver/Types.def#L62-L63

https://github.com/llvm/llvm-project/blob/c94e5f327f47821e29f21b39ef1dc511c91341d9/clang/include/clang/Driver/Types.def#L55-L56

And `.cppm` would still always map to `TY_CXXModule`:
https://github.com/llvm/llvm-project/blob/bf069ec743588b52d3329691113fec9a237f8c7d/clang/lib/Driver/Types.cpp#L398

https://github.com/llvm/llvm-project/pull/199289
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to