[PATCH] D116750: [clang][lex] Keep search directory indices up-to-date
Alex Hoppen via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 7 05:24:44 PST 2022
ahoppen added a comment.
I would prefer to use `std::shared_ptr<DirectoryLookup>` instead of `unsigned`. IIUC we already basically have a level of indirection because if we want to get the `DirectoryLookup`, we need to find it by its index in `SearchDirs`. And updating the indices just seems like a hack to me that can be solved more cleanly.
Wouldn’t we also need to update the indices in `SearchDirsUsage` and `ModuleToSearchDirIdx`? Or replace those by `std::shared_ptr<DirectoryLookup>` as well?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D116750/new/
https://reviews.llvm.org/D116750
More information about the cfe-commits
mailing list