Lines Matching defs:Cmd
44 auto Cmd = DB.getFallbackCommand(testPath("foo/bar.cc"));
45 EXPECT_EQ(Cmd.Directory, testPath("foo"));
46 EXPECT_THAT(Cmd.CommandLine, ElementsAre("clang", testPath("foo/bar.cc")));
47 EXPECT_EQ(Cmd.Output, "");
50 Cmd = DB.getFallbackCommand(testPath("foo/bar.h"));
51 EXPECT_THAT(Cmd.CommandLine, ElementsAre("clang", "-xobjective-c++-header",
53 Cmd = DB.getFallbackCommand(testPath("foo/bar"));
54 EXPECT_THAT(Cmd.CommandLine, ElementsAre("clang", "-xobjective-c++-header",
143 [](tooling::CompileCommand &Cmd, llvm::StringRef File) {
144 Cmd.CommandLine.push_back(
148 auto Cmd = *CDB.getCompileCommand(testPath("foo.cc"));
149 EXPECT_THAT(Cmd.CommandLine, ElementsAre("clang", "-DA=1", testPath("foo.cc"),
157 Cmd = *CDB.getCompileCommand(testPath("bar.cc"));
159 Cmd.CommandLine,
163 Cmd = CDB.getFallbackCommand("baz.cc");
164 EXPECT_THAT(Cmd.CommandLine, ElementsAre("clang", "-DA=2", "baz.cc",
270 auto Cmd = DB.getCompileCommand(testPath("build/../a.cc"));
271 ASSERT_TRUE(Cmd);
272 EXPECT_THAT(Cmd->CommandLine, Contains("-DFOO")) << "a.cc uses foo/ CDB";