Add support for CXXRecordDecl in CFGRecStmtDeclVisitor.

llvm-svn: 106918
This commit is contained in:
Ted Kremenek 2010-06-25 23:51:34 +00:00
parent 74d716b9cd
commit a2a27d65a5
1 changed files with 5 additions and 0 deletions

View File

@ -64,6 +64,7 @@ public:
DISPATCH_CASE(EnumConstant)
DISPATCH_CASE(Typedef)
DISPATCH_CASE(Record) // FIXME: Refine. VisitStructDecl?
DISPATCH_CASE(CXXRecord)
DISPATCH_CASE(Enum)
default:
assert(false && "Subtype of ScopedDecl not handled.");
@ -84,6 +85,10 @@ public:
DEFAULT_DISPATCH(ObjCMethod)
DEFAULT_DISPATCH(ObjCProtocol)
DEFAULT_DISPATCH(ObjCCategory)
void VisitCXXRecordDecl(CXXRecordDecl *D) {
static_cast<ImplClass*>(this)->VisitRecordDecl(D);
}
};
} // end namespace clang