r355625 - Fix some clang analysis tests passing arguments incorrectly

Reid Kleckner via cfe-commits cfe-commits at lists.llvm.org
Thu Mar 7 10:57:04 PST 2019


Author: rnk
Date: Thu Mar  7 10:57:04 2019
New Revision: 355625

URL: http://llvm.org/viewvc/llvm-project?rev=355625&view=rev
Log:
Fix some clang analysis tests passing arguments incorrectly

Modified:
    cfe/trunk/unittests/Analysis/ExprMutationAnalyzerTest.cpp

Modified: cfe/trunk/unittests/Analysis/ExprMutationAnalyzerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Analysis/ExprMutationAnalyzerTest.cpp?rev=355625&r1=355624&r2=355625&view=diff
==============================================================================
--- cfe/trunk/unittests/Analysis/ExprMutationAnalyzerTest.cpp (original)
+++ cfe/trunk/unittests/Analysis/ExprMutationAnalyzerTest.cpp Thu Mar  7 10:57:04 2019
@@ -933,14 +933,14 @@ TEST(ExprMutationAnalyzerTest, CommaExpr
   auto AST = buildASTFromCodeWithArgs(
       "template <class T> struct S;"
       "template <class T> void f() { S<T> 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 <class T> 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, CommaExpr
       UniquePtrDef + "template <class T> void f() "
                      "{ UniquePtr<T> x; UniquePtr<T> 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()));




More information about the cfe-commits mailing list