summaryrefslogtreecommitdiff
path: root/unittests/Tooling/CompilationDatabaseTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'unittests/Tooling/CompilationDatabaseTest.cpp')
-rw-r--r--unittests/Tooling/CompilationDatabaseTest.cpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/unittests/Tooling/CompilationDatabaseTest.cpp b/unittests/Tooling/CompilationDatabaseTest.cpp
index 679402975c..da7ae09917 100644
--- a/unittests/Tooling/CompilationDatabaseTest.cpp
+++ b/unittests/Tooling/CompilationDatabaseTest.cpp
@@ -370,30 +370,6 @@ TEST(findCompileArgsInJsonDatabase, FindsEntry) {
EXPECT_EQ("command4", FoundCommand.CommandLine[0]) << ErrorMessage;
}
-TEST(findCompileArgsInJsonDatabase, ParsesCompilerWrappers) {
- std::vector<std::pair<std::string, std::string>> Cases = {
- {"distcc gcc foo.c", "gcc foo.c"},
- {"gomacc clang++ foo.c", "clang++ foo.c"},
- {"ccache gcc foo.c", "gcc foo.c"},
- {"ccache.exe gcc foo.c", "gcc foo.c"},
- {"ccache g++.exe foo.c", "g++.exe foo.c"},
- {"ccache distcc gcc foo.c", "gcc foo.c"},
-
- {"distcc foo.c", "distcc foo.c"},
- {"distcc -I/foo/bar foo.c", "distcc -I/foo/bar foo.c"},
- };
- std::string ErrorMessage;
-
- for (const auto &Case : Cases) {
- std::string DB = R"([{"directory":".", "file":"/foo.c", "command":")" +
- Case.first + "\"}]";
- CompileCommand FoundCommand =
- findCompileArgsInJsonDatabase("/foo.c", DB, ErrorMessage);
- EXPECT_EQ(Case.second, llvm::join(FoundCommand.CommandLine, " "))
- << Case.first;
- }
-}
-
static std::vector<std::string> unescapeJsonCommandLine(StringRef Command) {
std::string JsonDatabase =
("[{\"directory\":\"//net/root\", \"file\":\"test\", \"command\": \"" +