]> granicus.if.org Git - clang/commitdiff
Fix Decl class hierarchy.
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 29 Sep 2009 21:26:14 +0000 (21:26 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 29 Sep 2009 21:26:14 +0000 (21:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83109 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/AST/DeclNodes.def

index c3a97f9a110d1c00b989b061aff16ae67b1d06ef..79a0d368288c03495a379473dfdfe83220fae80d 100644 (file)
@@ -91,16 +91,16 @@ ABSTRACT_DECL(Named,  Decl)
     DECL(TemplateTypeParm, TypeDecl)
   ABSTRACT_DECL(Value, NamedDecl)
     DECL(EnumConstant, ValueDecl)
-    ABSTRACT_DECL(Declarator, NamedDecl)
-      DECL(Function, ValueDecl)
+    ABSTRACT_DECL(Declarator, ValueDecl)
+      DECL(Function, DeclaratorDecl)
         DECL(CXXMethod, FunctionDecl)
           DECL(CXXConstructor, CXXMethodDecl)
           DECL(CXXDestructor, CXXMethodDecl)
           DECL(CXXConversion, CXXMethodDecl)
-      DECL(Field, ValueDecl)
+      DECL(Field, DeclaratorDecl)
         DECL(ObjCIvar, FieldDecl)
         DECL(ObjCAtDefsField, FieldDecl)
-      DECL(Var, ValueDecl)
+      DECL(Var, DeclaratorDecl)
         DECL(ImplicitParam, VarDecl)
         DECL(ParmVar, VarDecl)
           DECL(OriginalParmVar, ParmVarDecl)