continue;
}
- RecordDecl *Base = Ty->getDecl()->getDefinition(Context);
+ CXXRecordDecl *Base =
+ cast_or_null<CXXRecordDecl>(Ty->getDecl()->getDefinition(Context));
if (!Base) {
if (AllowShortCircuit) return false;
AllMatches = false;
continue;
}
- if (!BaseMatches(cast<CXXRecordDecl>(Base), OpaqueData)) {
+ Queue.push_back(Base);
+ if (!BaseMatches(Base, OpaqueData)) {
if (AllowShortCircuit) return false;
AllMatches = false;
continue;
(*this)(1);
}
};
+
+struct A { void f(); };
+struct B : A { };
+class C : B { using B::f; };