[cfe-commits] r106918 - /cfe/trunk/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h
Ted Kremenek
kremenek at apple.com
Fri Jun 25 16:51:34 PDT 2010
Author: kremenek
Date: Fri Jun 25 18:51:34 2010
New Revision: 106918
URL: http://llvm.org/viewvc/llvm-project?rev=106918&view=rev
Log:
Add support for CXXRecordDecl in CFGRecStmtDeclVisitor.
Modified:
cfe/trunk/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h
Modified: cfe/trunk/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h?rev=106918&r1=106917&r2=106918&view=diff
==============================================================================
--- cfe/trunk/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h (original)
+++ cfe/trunk/include/clang/Analysis/Visitors/CFGRecStmtDeclVisitor.h Fri Jun 25 18:51:34 2010
@@ -64,6 +64,7 @@
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 @@
DEFAULT_DISPATCH(ObjCMethod)
DEFAULT_DISPATCH(ObjCProtocol)
DEFAULT_DISPATCH(ObjCCategory)
+
+ void VisitCXXRecordDecl(CXXRecordDecl *D) {
+ static_cast<ImplClass*>(this)->VisitRecordDecl(D);
+ }
};
} // end namespace clang
More information about the cfe-commits
mailing list