From 5f140ba54794fe6ca379362b133eb27780e363d7 Mon Sep 17 00:00:00 2001 From: Kadir Cetinkaya Date: Tue, 12 Nov 2024 18:29:28 +0100 Subject: 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. --- clang/unittests/Frontend/CompilerInvocationTest.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp') 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 -- cgit v1.1