12#include "llvm/ADT/SmallString.h"
20 for (StringRef FileDep : FileDeps) {
21 auto ResolvedFileDep =
30 assert(!std::holds_alternative<std::monostate>(BuildInfo) &&
31 "Using uninitialized ModuleDeps");
32 if (
const auto *CI = std::get_if<CowCompilerInvocation>(&BuildInfo))
33 BuildInfo = CI->getCC1CommandLine();
34 return std::get<std::vector<std::string>>(BuildInfo);
static TemporarilyOwnedStringRef ResolveImportedPath(SmallString< 0 > &Buf, StringRef Path, ModuleFile &ModF)
Resolve Path in the context of module file M.
The JSON file list parser is used to communicate input to InstallAPI.
void forEachFileDep(llvm::function_ref< void(StringRef)> Cb) const
Invokes Cb for all file dependencies of this module.
const std::vector< std::string > & getBuildArguments() const
Get (or compute) the compiler invocation that can be used to build this module.