================ @@ -986,6 +989,10 @@ def warn_module_conflict : Warning< InGroup<ModuleConflict>; // C++20 modules +def err_module_decl_in_header + : Error<"module declaration must not come from an #include directive">; ---------------- yronglin wrote:
Added test clang/test/CXX/module/cpp.pre/p1.cpp https://github.com/llvm/llvm-project/pull/107168 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits