[PATCH] D116751: [clang][lex] NFC: Extract module creation into function
Jan Svoboda via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 7 05:35:04 PST 2022
jansvoboda11 added a comment.
In D116751#3227243 <https://reviews.llvm.org/D116751#3227243>, @ahoppen wrote:
> I just want to make sure that we don’t accidentally introduce a new instantiation of a `Module` that doesn’t go through `makeModule` in the future.
I understand that, but I'm not sure that's a desirable restriction in all situations. Moreover, `Module` resides in the `clangBasic` library while `ModuleMap` resides in `clangLex`. Befriending `ModuleMap` or otherwise tying `Module` to `ModuleMap` violates the library layering.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116751/new/
https://reviews.llvm.org/D116751
More information about the cfe-commits
mailing list