[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 29 14:40:17 PDT 2025
================
@@ -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">;
----------------
shafik wrote:
I don't see a test that covers this or the next diagnostic
https://github.com/llvm/llvm-project/pull/107168
More information about the cfe-commits
mailing list