[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)

Hubert Tong via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 14 11:06:38 PDT 2025


================
@@ -986,6 +989,14 @@ def warn_module_conflict : Warning<
   InGroup<ModuleConflict>;
 
 // C++20 modules
----------------
hubert-reinterpretcast wrote:

It seems the restriction on `import` directives in the _pp-global-module-fragment_ has not been implemented?
```cpp
module;
import m2;  // expected-error {{}}
export module m;
```

https://github.com/llvm/llvm-project/pull/107168


More information about the cfe-commits mailing list