From 8e3e148c888e1d9d2b11721112a54a62e33a635a Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Fri, 8 Jan 2021 10:53:12 +0100 Subject: Revert "[clang][cli] Port DiagnosticOpts to new option parsing system" This reverts commit 8e3230ff --- clang/unittests/Frontend/CompilerInvocationTest.cpp | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'clang/unittests/Frontend/CompilerInvocationTest.cpp') diff --git a/clang/unittests/Frontend/CompilerInvocationTest.cpp b/clang/unittests/Frontend/CompilerInvocationTest.cpp index 8efba9c..577059f 100644 --- a/clang/unittests/Frontend/CompilerInvocationTest.cpp +++ b/clang/unittests/Frontend/CompilerInvocationTest.cpp @@ -680,19 +680,4 @@ TEST_F(CommandLineTest, PresentAndNotImpliedGenerated) { ASSERT_THAT(GeneratedArgs, Contains(StrEq("-cl-mad-enable"))); ASSERT_THAT(GeneratedArgs, Contains(StrEq("-menable-unsafe-fp-math"))); } - -// Diagnostic option. - -TEST_F(CommandLineTest, DiagnosticOptionPresent) { - const char *Args[] = {"-verify=xyz"}; - - ASSERT_TRUE(CompilerInvocation::CreateFromArgs(Invocation, Args, *Diags)); - - ASSERT_EQ(Invocation.getDiagnosticOpts().VerifyPrefixes, - std::vector({"xyz"})); - - Invocation.generateCC1CommandLine(GeneratedArgs, *this); - - ASSERT_THAT(GeneratedArgs, ContainsN(StrEq("-verify=xyz"), 1)); -} } // anonymous namespace -- cgit v1.1