================
@@ -399,6 +399,32 @@ TEST(findCompileArgsInJsonDatabase, FindsEntry) {
EXPECT_EQ("command4", FoundCommand.CommandLine[0]) << ErrorMessage;
}
+TEST(findCompileArgsInJsonDatabase, FindsEntryRelativeDirectory) {
+ StringRef Directory(".");
+ StringRef FileName("file");
+ StringRef Command("command");
+ std::string JsonDatabase = "[";
+ JsonDatabase +=
+ ("{\"directory\":\"" + Directory + "\"," + "\"command\":\"" + Command +
+ "\","
+ "\"file\":\"" +
+ FileName + "\"}")
----------------
keith wrote:
clang-format fighting me on this one
https://github.com/llvm/llvm-project/pull/127734
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits