Home | History | Annotate | Download | only in Tooling

Lines Matching defs: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,
268 std::vector<std::string> Args;
269 Args.push_back("-MMD");
270 Args.push_back("-MT");
271 Args.push_back(DepFilePath.str());
272 Args.push_back("-MF");
273 Args.push_back(DepFilePath.str());
274 EXPECT_TRUE(runToolOnCodeWithArgs(new SkipBodyAction, "", Args));
291 [&Found, &Ran](const CommandLineArguments &Args, StringRef /*unused*/) {
293 if (std::find(Args.begin(), Args.end(), "-fsyntax-only") != Args.end())
295 return Args;
334 std::vector<std::string> Args = {"clang", "-foo"};
335 addTargetAndModeForProgramName(Args, "");
336 EXPECT_EQ((std::vector<std::string>{"clang", "-foo"}), Args);
337 addTargetAndModeForProgramName(Args, Target + "-g++");
340 Args);
350 std::vector<std::string> Args = {"clang", "-foo"};
351 addTargetAndModeForProgramName(Args, ToolPath);
354 Args);
361 std::vector<std::string> Args = {"clang", "-foo", "-target", "something"};
362 addTargetAndModeForProgramName(Args, Target + "-g++");
365 Args);
378 std::vector<std::string> Args = {"clang", "-foo", "--driver-mode=abc"};
379 addTargetAndModeForProgramName(Args, Target + "-g++");
382 Args);