Lines Matching defs:Cmd
65 // We cannot use vfs->makeAbsolute because Cmd.FileName is either absolute or
66 // relative to Cmd.Directory, which might not be the same as current working
68 llvm::SmallString<128> getAbsolutePath(const tooling::CompileCommand &Cmd) {
70 if (llvm::sys::path::is_absolute(Cmd.Filename)) {
71 AbsolutePath = Cmd.Filename;
73 AbsolutePath = Cmd.Directory;
74 llvm::sys::path::append(AbsolutePath, Cmd.Filename);
165 auto Cmd = CDB.getCompileCommand(Path);
166 if (!Cmd)
168 if (auto Error = index(std::move(*Cmd)))
222 IF->Cmd.reset();
255 llvm::Error BackgroundIndex::index(tooling::CompileCommand Cmd) {
257 SPAN_ATTACH(Tracer, "file", Cmd.Filename);
258 auto AbsolutePath = getAbsolutePath(Cmd);
260 auto FS = TFS.view(Cmd.Directory);
273 vlog("Indexing {0} (digest:={1})", Cmd.Filename, llvm::toHex(Hash));
276 Inputs.CompileCommand = std::move(Cmd);
330 Index.Cmd = Inputs.CompileCommand;