[PATCH] D116751: [clang][lex] NFC: Extract module creation into function
Alex Hoppen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 7 03:53:41 PST 2022
ahoppen added a comment.
I suppose the idea is that all `Module` creations should go through `makeModule`, right? In that case I think we should either
- make the `Module` constructor private and `ModuleMap` a friend of `Module`
- or at least add a doc comment to the `Module` constructor that says `Module`s should only be created using `ModuleMap::makeModule`.
Or are there other places that also create `Module`s but are not supposed to go through `ModuleMap::makeModule`?
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