[cfe-commits] r39290 - in /cfe/cfe/trunk: Parse/ParseDecl.cpp include/clang/Parse/Action.h

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:42:33 PDT 2007


Author: sabre
Date: Wed Jul 11 11:42:33 2007
New Revision: 39290

URL: http://llvm.org/viewvc/llvm-project?rev=39290&view=rev
Log:
add callback for fields.

Modified:
    cfe/cfe/trunk/Parse/ParseDecl.cpp
    cfe/cfe/trunk/include/clang/Parse/Action.h

Modified: cfe/cfe/trunk/Parse/ParseDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Parse/ParseDecl.cpp?rev=39290&r1=39289&r2=39290&view=diff

==============================================================================
--- cfe/cfe/trunk/Parse/ParseDecl.cpp (original)
+++ cfe/cfe/trunk/Parse/ParseDecl.cpp Wed Jul 11 11:42:33 2007
@@ -536,12 +536,8 @@
       if (Tok.getKind() == tok::kw___attribute)
         ParseAttributes();
       
-      // TODO: install declarator.
-      
-      
-      //LastDeclInGroup = Actions.ParseDeclarator(CurScope, D, Init.Val,
-      //LastDeclInGroup);
-
+      // Install the declarator into the current TagDecl.
+      Actions.ParseField(TagDecl, DeclaratorInfo, BitfieldSize);
       
       // If we don't have a comma, it is either the end of the list (a ';')
       // or an error, bail out.

Modified: cfe/cfe/trunk/include/clang/Parse/Action.h
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/include/clang/Parse/Action.h?rev=39290&r1=39289&r2=39290&view=diff

==============================================================================
--- cfe/cfe/trunk/include/clang/Parse/Action.h (original)
+++ cfe/cfe/trunk/include/clang/Parse/Action.h Wed Jul 11 11:42:33 2007
@@ -153,6 +153,9 @@
     return 0;
   }
   
+  virtual void ParseField(DeclTy *TagDecl, Declarator &D,
+                          ExprTy *BitfieldWidth) {}
+  
   //===--------------------------------------------------------------------===//
   // Statement Parsing Callbacks.
   //===--------------------------------------------------------------------===//





More information about the cfe-commits mailing list