Lines Matching refs:args

81 static bool ExecGraphViewer(StringRef ExecPath, std::vector<const char *> &args,
84 assert(args.back() == nullptr);
86 if (sys::ExecuteAndWait(ExecPath, args.data(), nullptr, nullptr, 0, 0,
94 sys::ExecuteNoWait(ExecPath, args.data(), nullptr, nullptr, 0, &ErrMsg);
145 std::vector<const char *> args;
146 args.push_back(ViewerPath.c_str());
148 args.push_back("-W");
149 args.push_back(Filename.c_str());
150 args.push_back(nullptr);
152 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg))
157 std::vector<const char *> args;
158 args.push_back(ViewerPath.c_str());
159 args.push_back(Filename.c_str());
160 args.push_back(nullptr);
162 if (!ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg))
168 std::vector<const char *> args;
169 args.push_back(ViewerPath.c_str());
170 args.push_back(Filename.c_str());
171 args.push_back(nullptr);
174 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg);
179 std::vector<const char *> args;
180 args.push_back(ViewerPath.c_str());
181 args.push_back(Filename.c_str());
183 args.push_back("-f");
184 args.push_back(getProgramName(program));
186 args.push_back(nullptr);
189 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg);
222 std::vector<const char *> args;
223 args.push_back(GeneratorPath.c_str());
225 args.push_back("-Tpdf");
227 args.push_back("-Tps");
228 args.push_back("-Nfontname=Courier");
229 args.push_back("-Gsize=7.5,10");
230 args.push_back(Filename.c_str());
231 args.push_back("-o");
232 args.push_back(OutputFilename.c_str());
233 args.push_back(nullptr);
237 if (ExecGraphViewer(GeneratorPath, args, Filename, true, ErrMsg))
241 // because the args are passed as vector of char*.
244 args.clear();
245 args.push_back(ViewerPath.c_str());
248 args.push_back("-W");
249 args.push_back(OutputFilename.c_str());
253 args.push_back(OutputFilename.c_str());
256 args.push_back("--spartan");
257 args.push_back(OutputFilename.c_str());
260 args.push_back("/S");
261 args.push_back("/C");
264 args.push_back(StartArg.c_str());
269 args.push_back(nullptr);
272 return ExecGraphViewer(ViewerPath, args, OutputFilename, wait, ErrMsg);
277 std::vector<const char *> args;
278 args.push_back(ViewerPath.c_str());
279 args.push_back(Filename.c_str());
280 args.push_back(nullptr);
287 return ExecGraphViewer(ViewerPath, args, Filename, wait, ErrMsg);