Lines Matching defs:Cmd

104   tooling::CompileCommand Cmd;
105 Cmd.Filename = testPath("root/A.cc");
106 Cmd.Directory = testPath("root");
107 Cmd.CommandLine = {"clang++", "-DA=1", testPath("root/A.cc")};
108 CDB.setCompileCommand(testPath("root/A.cc"), Cmd);
123 tooling::CompileCommand Cmd;
124 Cmd.Filename = Filename;
125 Cmd.Directory = testRoot();
126 Cmd.CommandLine = {"clang++", Filename};
127 Cmds.push_back(std::move(Cmd));
154 for (auto &Cmd : Cmds) {
155 std::string FullPath = testPath(Cmd.Filename);
156 CDB.setCompileCommand(FullPath, std::move(Cmd));
197 tooling::CompileCommand Cmd;
198 Cmd.Filename = testPath("root/A.cc");
199 Cmd.Directory = testPath("root");
200 Cmd.CommandLine = {"clang++", "-DA=1", testPath("root/A.cc")};
201 CDB.setCompileCommand(testPath("root/A.cc"), Cmd);
211 Cmd.Filename = testPath("root/B.cc");
212 Cmd.CommandLine = {"clang++", Cmd.Filename};
213 CDB.setCompileCommand(testPath("root/B.cc"), Cmd);
252 tooling::CompileCommand Cmd;
253 Cmd.Filename = testPath("root/A.cc");
254 Cmd.Directory = testPath("root");
255 Cmd.CommandLine = {"clang++", testPath("root/A.cc")};
256 CDB.setCompileCommand(testPath("root/A.cc"), Cmd);
282 tooling::CompileCommand Cmd;
283 Cmd.Filename = testPath("root/A.cc");
284 Cmd.Directory = testPath("root");
285 Cmd.CommandLine = {"clang++", testPath("root/A.cc")};
291 CDB.setCompileCommand(testPath("root/A.cc"), Cmd);
301 CDB.setCompileCommand(testPath("root/A.cc"), Cmd);
352 tooling::CompileCommand Cmd;
353 Cmd.Filename = testPath("root/A.cc");
354 Cmd.Directory = testPath("root");
355 Cmd.CommandLine = {"clang++", testPath("root/A.cc")};
360 CDB.setCompileCommand(testPath("root/A.cc"), Cmd);
401 tooling::CompileCommand Cmd;
402 Cmd.Filename = testPath("root/A.cc");
403 Cmd.Directory = testPath("root");
404 Cmd.CommandLine = {"clang++", testPath("root/A.cc")};
410 CDB.setCompileCommand(testPath("root/A.cc"), Cmd);
425 CDB.setCompileCommand(testPath("root/A.cc"), Cmd);
443 CDB.setCompileCommand(testPath("root/A.cc"), Cmd);
475 tooling::CompileCommand Cmd;
476 Cmd.Filename = testPath("root/A.cc");
477 Cmd.Directory = testPath("root");
478 Cmd.CommandLine = {"clang++", testPath("root/A.cc")};
484 CDB.setCompileCommand(testPath("root/A.cc"), Cmd);
500 CDB.setCompileCommand(testPath("root/A.cc"), Cmd);
516 CDB.setCompileCommand(testPath("root/A.cc"), Cmd);
536 tooling::CompileCommand Cmd;
538 Cmd.Filename = "../A.cc";
539 Cmd.Directory = testPath("root/build");
540 Cmd.CommandLine = {"clang++", "../A.cc"};
541 CDB.setCompileCommand(testPath("root/build/../A.cc"), Cmd);
545 Cmd.Filename = "./B.cc";
546 Cmd.Directory = testPath("root");
547 Cmd.CommandLine = {"clang++", "./B.cc"};
548 CDB.setCompileCommand(testPath("root/./B.cc"), Cmd);
566 tooling::CompileCommand Cmd;
577 Cmd.Filename = "../A.cc";
578 Cmd.Directory = testPath("build");
579 Cmd.CommandLine = {"clang++", "../A.cc"};
580 CDB.setCompileCommand(testPath("build/../A.cc"), Cmd);
630 tooling::CompileCommand Cmd;
633 Cmd.Filename = "../A.cc";
634 Cmd.Directory = testPath("build");
635 Cmd.CommandLine = {"clang++", "../A.cc", "-fsyntax-only"};
636 CDB.setCompileCommand(testPath("build/../A.cc"), Cmd);
641 // Make sure we only store the Cmd for main file.
642 EXPECT_FALSE(MSS.loadShard(testPath("A.h"))->Cmd);
644 tooling::CompileCommand CmdStored = *MSS.loadShard(testPath("A.cc"))->Cmd;
645 EXPECT_EQ(CmdStored.CommandLine, Cmd.CommandLine);
646 EXPECT_EQ(CmdStored.Directory, Cmd.Directory);
660 tooling::CompileCommand Cmd;
661 Cmd.Filename = "../A.cc";
662 Cmd.Directory = testPath("build");
663 Cmd.CommandLine = {"clang++", "../A.cc", "-fsyntax-only"};
664 CDB.setCompileCommand(testPath("A.cc"), Cmd);
674 Cmd.CommandLine.push_back("-DFOO");
676 CDB.setCompileCommand(testPath("A.cc"), Cmd);