aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend/CompilerInvocationTest.cpp
diff options
context:
space:
mode:
authorKadir Cetinkaya <kadircet@google.com>2024-11-12 18:29:28 +0100
committerKadir Cetinkaya <kadircet@google.com>2024-11-12 18:30:42 +0100
commit5f140ba54794fe6ca379362b133eb27780e363d7 (patch)
tree265253bfec3cb38d4c0700a87e2e263ac1e3a3e2 /clang/unittests/Frontend/CompilerInvocationTest.cpp
parent39351f8e46e3e42b945ed686537f182b4c313289 (diff)
downloadllvm-5f140ba54794fe6ca379362b133eb27780e363d7.zip
llvm-5f140ba54794fe6ca379362b133eb27780e363d7.tar.gz
llvm-5f140ba54794fe6ca379362b133eb27780e363d7.tar.bz2
Revert "[clang] Introduce diagnostics suppression mappings (#112517)"
This reverts commit 12e3ed8de8c6063b15916b3faf67c8c9cd17df1f. This reverts commit 41e3919ded78d8870f7c95e9181c7f7e29aa3cc4. There are some buildbot breakages in https://lab.llvm.org/buildbot/#/builders/18/builds/6832.
Diffstat (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp')
-rw-r--r--clang/unittests/Frontend/CompilerInvocationTest.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/clang/unittests/Frontend/CompilerInvocationTest.cpp b/clang/unittests/Frontend/CompilerInvocationTest.cpp
index 45478de..7912253 100644
--- a/clang/unittests/Frontend/CompilerInvocationTest.cpp
+++ b/clang/unittests/Frontend/CompilerInvocationTest.cpp
@@ -1046,15 +1046,4 @@ TEST_F(CommandLineTest, PluginArgsRoundTripDeterminism) {
ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
}
-
-TEST_F(CommandLineTest, WarningSuppressionMappings) {
- const char *Args[] = {"--warning-suppression-mappings=foo.txt"};
-
- EXPECT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags));
- EXPECT_EQ(Invocation.getDiagnosticOpts().DiagnosticSuppressionMappingsFile,
- "foo.txt");
-
- Invocation.generateCC1CommandLine(GeneratedArgs, *this);
- EXPECT_THAT(GeneratedArgs, Contains(StrEq(Args[0])));
-}
} // anonymous namespace