Lines Matching defs:getCompileCommand

67     getCompileCommand(llvm::StringRef File) const override {
90 EXPECT_THAT(CDB.getCompileCommand(testPath("foo.cc"))->CommandLine,
92 EXPECT_EQ(CDB.getCompileCommand(testPath("missing.cc")), std::nullopt);
97 EXPECT_THAT(CDB.getCompileCommand(testPath("foo.cc"))->CommandLine,
99 EXPECT_EQ(CDB.getCompileCommand(testPath("missing.cc")), std::nullopt);
102 EXPECT_THAT(CDB.getCompileCommand(testPath("missing.cc"))->CommandLine,
114 EXPECT_EQ(CDB.getCompileCommand(testPath("bar.cc")), std::nullopt);
117 EXPECT_THAT(CDB.getCompileCommand(testPath("bar.cc"))->CommandLine,
148 auto Cmd = *CDB.getCompileCommand(testPath("foo.cc"));
157 Cmd = *CDB.getCompileCommand(testPath("bar.cc"));
179 EXPECT_THAT(CDB.getCompileCommand(testPath("foo.cc"))->CommandLine,
232 DB.getCompileCommand(testPath("build/../a.cc"));
238 DB.getCompileCommand(testPath("build/gen.cc"));
270 auto Cmd = DB.getCompileCommand(testPath("build/../a.cc"));
277 DB.getCompileCommand(testPath("b.cc"));
283 DB.getCompileCommand(testPath("build/gen.cc"));
299 DB.getCompileCommand(testPath("a.cc"));
306 DB.getCompileCommand(testPath("build/gen.cc"));
317 .getCompileCommand(testPath(Relative))
348 auto Commands = CDB.getCompileCommand(testPath("x/y.cpp"));
382 EXPECT_FALSE(CDB.getCompileCommand(testPath("foo.cc")));
383 EXPECT_THAT(CDB.getCompileCommand(testPath("x/foo.cc")), hasArg("-DX"));
384 EXPECT_THAT(CDB.getCompileCommand(testPath("x/y/foo.cc")), hasArg("-DX"));
385 EXPECT_THAT(CDB.getCompileCommand(testPath("x/y/z/foo.cc")), hasArg("-DZ"));
388 EXPECT_FALSE(CDB.getCompileCommand(testPath("foo.cc")));
389 EXPECT_FALSE(CDB.getCompileCommand(testPath("x/foo.cc")));
390 EXPECT_FALSE(CDB.getCompileCommand(testPath("x/y/foo.cc")));
391 EXPECT_FALSE(CDB.getCompileCommand(testPath("x/y/z/foo.cc")));
395 EXPECT_FALSE(CDB.getCompileCommand(testPath("foo.cc")));
396 EXPECT_FALSE(CDB.getCompileCommand(testPath("x/foo.cc")));
397 EXPECT_FALSE(CDB.getCompileCommand(testPath("x/y/foo.cc")));
398 EXPECT_FALSE(CDB.getCompileCommand(testPath("x/y/z/foo.cc")));
401 EXPECT_THAT(CDB.getCompileCommand(testPath("foo.cc")), hasArg("-DZ"));
402 EXPECT_THAT(CDB.getCompileCommand(testPath("x/foo.cc")), hasArg("-DZ"));
403 EXPECT_THAT(CDB.getCompileCommand(testPath("x/y/foo.cc")), hasArg("-DZ"));
404 EXPECT_THAT(CDB.getCompileCommand(testPath("x/y/z/foo.cc")), hasArg("-DZ"));
424 EXPECT_TRUE(DB.getCompileCommand(File));
447 .getCompileCommand(testPath(Relative))