[cfe-commits] r39293 - /cfe/cfe/trunk/include/clang/AST/Decl.h
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:42:36 PDT 2007
Author: sabre
Date: Wed Jul 11 11:42:36 2007
New Revision: 39293
URL: http://llvm.org/viewvc/llvm-project?rev=39293&view=rev
Log:
implement classof for FieldDecl
Modified:
cfe/cfe/trunk/include/clang/AST/Decl.h
Modified: cfe/cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/AST/Decl.h?rev=39293&r1=39292&r2=39293&view=diff
==============================================================================
--- cfe/cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/cfe/trunk/include/clang/AST/Decl.h Wed Jul 11 11:42:36 2007
@@ -194,6 +194,11 @@
FieldDecl(SourceLocation L, IdentifierInfo *Id, TypeRef T)
: ObjectDecl(Field, L, Id, T) {}
+ // Implement isa/cast/dyncast/etc.
+ static bool classof(const Decl *D) {
+ return D->getKind() == Field;
+ }
+ static bool classof(const FieldDecl *D) { return true; }
};
/// TagDecl - Represents the declaration of a struct/union/class/enum.
More information about the cfe-commits
mailing list