[PATCH] D135634: [clang][modules] Serialize VFS overlay paths into PCMs
Ben Langmuir via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 2 14:33:17 PST 2022
benlangmuir added a comment.
> If the original HeaderSearchOptions didn't have any VFS overlay files, adopt the PCM ones.
IIUC this is what the patch does, right?
> If the original HeaderSearchOptions did have VFS overlay files of its own, error out if the PCM has different ones.
Where did we land on this on?
================
Comment at: clang/include/clang/Serialization/ASTReader.h:179
+ /// otherwise.
+ virtual bool ReadHeaderSearchPaths(const HeaderSearchOptions &HSOpts,
+ bool Complain) {
----------------
We should document what the expectations are for `ReadHeaderSearchOptions` and `ReadHeaderSearchPaths` callbacks: will paths be set when `ReadHeaderSearchOptions` is called? Will non-paths be set when `ReadHeaderSearchPaths` is called? I assume we want to say "no" so that we're not tied to callback order, but we should document it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D135634/new/
https://reviews.llvm.org/D135634
More information about the cfe-commits
mailing list