Remove explicit type from an initializer list. NFC.

llvm-svn: 335846
This commit is contained in:
Alexander Kornienko 2018-06-28 12:18:42 +00:00
parent 91c9fab10f
commit 82a69b80c2
1 changed files with 2 additions and 2 deletions

View File

@ -581,7 +581,7 @@ TEST(ExprMutationAnalyzerTest, UnevaluatedExpressions) {
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, NotUnevaluatedExpressions) {
"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()"));
}