Workaround for ObjCIvarDecl problem

Change-Id: I7eb0fccce4b8268e5d9559b2eb12778d0d288c6b
This commit is contained in:
Stephan Bergmann
2015-08-04 09:38:44 +02:00
parent c15b4cf39a
commit a2052db259

View File

@@ -50,6 +50,14 @@ public:
bool VisitFieldDecl(const FieldDecl *);
bool VisitVarDecl(const VarDecl *);
bool WalkUpFromObjCIvarDecl(ObjCIvarDecl * decl) {
// Don't recurse into WalkUpFromFieldDecl, as VisitFieldDecl calls
// FieldDecl::getParent, which triggers an assertion at least with
// current trunk towards Clang 3.7 when the FieldDecl is actually an
// ObjCIvarDecl.
return VisitObjCIvarDecl(decl);
}
};
bool BaseCheckNotSubclass(const CXXRecordDecl *BaseDefinition, void *p) {