Lines Matching refs:Args
159 std::vector<std::string> Args;
160 Args.push_back("tool-executable");
161 Args.push_back("-Idef");
162 Args.push_back("-fsyntax-only");
163 Args.push_back("test.cpp");
164 clang::tooling::ToolInvocation Invocation(Args, new SyntaxOnlyAction,
185 std::vector<std::string> Args;
186 Args.push_back("tool-executable");
187 Args.push_back("-Idef");
188 Args.push_back("-fsyntax-only");
189 Args.push_back("test.cpp");
190 clang::tooling::ToolInvocation Invocation(Args, new SyntaxOnlyAction,
258 std::vector<std::string> Args = {"-std=c++11"};
269 "struct skipMe { skipMe() : an_error() { more error } };", Args));
273 Args));
277 Args));
282 Args));
285 Args));
289 Args));
293 Args));
323 std::vector<std::string> Args;
324 Args.push_back("-MMD");
325 Args.push_back("-MT");
326 Args.push_back(DepFilePath.str());
327 Args.push_back("-MF");
328 Args.push_back(DepFilePath.str());
329 EXPECT_TRUE(runToolOnCodeWithArgs(new SkipBodyAction, "", Args));
346 [&Found, &Ran](const CommandLineArguments &Args, StringRef /*unused*/) {
348 if (std::find(Args.begin(), Args.end(), "-fsyntax-only") != Args.end())
350 return Args;
389 std::vector<std::string> Args = {"clang", "-foo"};
390 addTargetAndModeForProgramName(Args, "");
391 EXPECT_EQ((std::vector<std::string>{"clang", "-foo"}), Args);
392 addTargetAndModeForProgramName(Args, Target + "-g++");
395 Args);
405 std::vector<std::string> Args = {"clang", "-foo"};
406 addTargetAndModeForProgramName(Args, ToolPath);
409 Args);
416 std::vector<std::string> Args = {"clang", "-foo", "-target", "something"};
417 addTargetAndModeForProgramName(Args, Target + "-g++");
420 Args);
433 std::vector<std::string> Args = {"clang", "-foo", "--driver-mode=abc"};
434 addTargetAndModeForProgramName(Args, Target + "-g++");
437 Args);