[clang] [C++20][Modules] Implement P1857R3 Modules Dependency Discovery (PR #107168)
Michael Spencer via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 16 13:09:38 PDT 2025
Bigcheese wrote:
> I have a question, when the input does not meet the restrictions of P1857R3, do we need to fallback to the old parsing method to perform error recovery?
Hmm, that would probably be the most useful. There's not any ambiguity about what the user meant by:
```
import
a;
```
For `import a; import b;` I think we should error with "extra tokens at end of import directive", but still parse the next `import` as an import decl (rather than skipping or as a normal decl). In general I think we should try to continue where it's reasonably easy to do.
https://github.com/llvm/llvm-project/pull/107168
More information about the cfe-commits
mailing list