aboutsummaryrefslogtreecommitdiff
path: root/clang/unittests/Frontend
diff options
context:
space:
mode:
authorJan Svoboda <jan_svoboda@apple.com>2021-01-08 10:53:12 +0100
committerJan Svoboda <jan_svoboda@apple.com>2021-01-08 10:53:12 +0100
commit8e3e148c888e1d9d2b11721112a54a62e33a635a (patch)
tree57c39c6b50a62f29f275b5cfc0341b2829278a80 /clang/unittests/Frontend
parent72fb5ba079019c2108d676526b5285b228795e48 (diff)
downloadllvm-8e3e148c888e1d9d2b11721112a54a62e33a635a.zip
llvm-8e3e148c888e1d9d2b11721112a54a62e33a635a.tar.gz
llvm-8e3e148c888e1d9d2b11721112a54a62e33a635a.tar.bz2
Revert "[clang][cli] Port DiagnosticOpts to new option parsing system"
This reverts commit 8e3230ff
Diffstat (limited to 'clang/unittests/Frontend')
-rw-r--r--clang/unittests/Frontend/CompilerInvocationTest.cpp15
1 files changed, 0 insertions, 15 deletions
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<std::string>({"xyz"}));
-
- Invocation.generateCC1CommandLine(GeneratedArgs, *this);
-
- ASSERT_THAT(GeneratedArgs, ContainsN(StrEq("-verify=xyz"), 1));
-}
} // anonymous namespace