[clang-tools-extra] r335846 - Remove explicit type from an initializer list. NFC.
Alexander Kornienko via cfe-commits
cfe-commits at lists.llvm.org
Thu Jun 28 05:18:42 PDT 2018
Author: alexfh
Date: Thu Jun 28 05:18:42 2018
New Revision: 335846
URL: http://llvm.org/viewvc/llvm-project?rev=335846&view=rev
Log:
Remove explicit type from an initializer list. NFC.
Modified:
clang-tools-extra/trunk/unittests/clang-tidy/ExprMutationAnalyzerTest.cpp
Modified: clang-tools-extra/trunk/unittests/clang-tidy/ExprMutationAnalyzerTest.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/unittests/clang-tidy/ExprMutationAnalyzerTest.cpp?rev=335846&r1=335845&r2=335846&view=diff
==============================================================================
--- clang-tools-extra/trunk/unittests/clang-tidy/ExprMutationAnalyzerTest.cpp (original)
+++ clang-tools-extra/trunk/unittests/clang-tidy/ExprMutationAnalyzerTest.cpp Thu Jun 28 05:18:42 2018
@@ -581,7 +581,7 @@ TEST(ExprMutationAnalyzerTest, Unevaluat
AST = tooling::buildASTFromCodeWithArgs("namespace std { class type_info; }"
"void f() { int x; typeid(x = 10); }",
- std::vector<std::string>({"-frtti"}));
+ {"-frtti"});
Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
EXPECT_FALSE(isMutated(Results, AST.get()));
@@ -601,7 +601,7 @@ TEST(ExprMutationAnalyzerTest, NotUneval
"namespace std { class type_info; }"
"struct A { virtual ~A(); }; struct B : A {};"
"struct X { A& f(); }; void f() { X x; typeid(x.f()); }",
- std::vector<std::string>({"-frtti"}));
+ {"-frtti"});
Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("x.f()"));
}
More information about the cfe-commits
mailing list