With MS compatibility, Sema adds an implicit definition of type_info,
which was causing the matchers to return 3 instead of 2.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333170
91177308-0d34-0410-b5e6-
96231b3b80d8
)",
Lang_CXX);
ASSERT_EQ(2u, DeclCounter<CXXRecordDecl>().match(
- ToTU, cxxRecordDecl(hasParent(translationUnitDecl()))));
+ ToTU, cxxRecordDecl(unless(isImplicit()))));
Decl *FromTU = getTuDecl(
R"(
Import(FromD, Lang_CXX);
EXPECT_EQ(2u, DeclCounter<CXXRecordDecl>().match(
- ToTU, cxxRecordDecl(hasParent(translationUnitDecl()))));
+ ToTU, cxxRecordDecl(unless(isImplicit()))));
}
TEST_P(