Lines Matching defs:Cmd
102 DriverArgs(const tooling::CompileCommand &Cmd, llvm::StringRef File) {
103 llvm::SmallString<128> Driver(Cmd.CommandLine.front());
108 llvm::sys::fs::make_absolute(Cmd.Directory, Driver);
111 for (size_t I = 0, E = Cmd.CommandLine.size(); I < E; ++I) {
112 llvm::StringRef Arg = Cmd.CommandLine[I];
117 Lang = Cmd.CommandLine[I + 1];
131 Sysroot = Cmd.CommandLine[I + 1];
134 ISysroot = Cmd.CommandLine[I + 1];
141 Target = Cmd.CommandLine[I + 1];
146 Stdlib = Cmd.CommandLine[I + 1];
159 Specs.push_back(Cmd.CommandLine[I + 1]);
429 addSystemIncludes(tooling::CompileCommand &Cmd,
439 auto InsertAt = llvm::find(Cmd.CommandLine, "--");
440 Cmd.CommandLine.insert(InsertAt, std::make_move_iterator(ToAppend.begin()),
443 return Cmd;
446 tooling::CompileCommand &setTarget(tooling::CompileCommand &Cmd,
450 for (llvm::StringRef Arg : Cmd.CommandLine) {
452 return Cmd;
455 auto InsertAt = llvm::find(Cmd.CommandLine, "--");
456 Cmd.CommandLine.insert(InsertAt, "--target=" + Target);
458 return Cmd;
512 void operator()(tooling::CompileCommand &Cmd, llvm::StringRef File) const {
513 if (Cmd.CommandLine.empty())
516 DriverArgs Args(Cmd, File);
522 setTarget(addSystemIncludes(Cmd, Info->SystemIncludes), Info->Target);