From 15846bb5acdc8b11c95935a757844093b18d78bb Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Thu, 7 Mar 2019 18:57:04 +0000 Subject: Fix some clang analysis tests passing arguments incorrectly llvm-svn: 355625 --- clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'clang') diff --git a/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp b/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp index c8ddc48fa71..2c22a5cf9ed 100644 --- a/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp +++ b/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp @@ -933,14 +933,14 @@ TEST(ExprMutationAnalyzerTest, CommaExprWithCallUnresolved) { auto AST = buildASTFromCodeWithArgs( "template struct S;" "template void f() { S s; int x, y; s.mf((y, x)); }", - {"-fno-delayed-template-parsing -Wno-unused-value"}); + {"-fno-delayed-template-parsing", "-Wno-unused-value"}); auto Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); EXPECT_TRUE(isMutated(Results, AST.get())); AST = buildASTFromCodeWithArgs( "template void f(T t) { int x, y; g(t, (y, x)); }", - {"-fno-delayed-template-parsing -Wno-unused-value"}); + {"-fno-delayed-template-parsing", "-Wno-unused-value"}); Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); EXPECT_TRUE(isMutated(Results, AST.get())); } @@ -1006,7 +1006,7 @@ TEST(ExprMutationAnalyzerTest, CommaExprAsUniquePtr) { UniquePtrDef + "template void f() " "{ UniquePtr x; UniquePtr y;" " (y, x)->mf(); }", - {"-fno-delayed-template-parsing -Wno-unused-value"}); + {"-fno-delayed-template-parsing", "-Wno-unused-value"}); const auto Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); EXPECT_TRUE(isMutated(Results, AST.get())); -- cgit v1.2.3