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

Steve Naroff snaroff at apple.com
Mon Oct 8 16:10:47 PDT 2007


Author: snaroff
Date: Mon Oct  8 18:10:47 2007
New Revision: 42777

URL: http://llvm.org/viewvc/llvm-project?rev=42777&view=rev
Log:

Remove 2 protocol related actions from MinimalActions (protocols shouldn't be recognized as types).


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

Modified: cfe/trunk/Parse/MinimalAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Parse/MinimalAction.cpp?rev=42777&r1=42776&r2=42777&view=diff

==============================================================================
--- cfe/trunk/Parse/MinimalAction.cpp (original)
+++ cfe/trunk/Parse/MinimalAction.cpp Mon Oct  8 18:10:47 2007
@@ -80,19 +80,6 @@
   return 0;
 }
 
-Action::DeclTy *
-MinimalAction::ActOnStartProtocolInterface(Scope* S,
-		 SourceLocation AtProtoInterfaceLoc,
-                 IdentifierInfo *ProtocolName, SourceLocation ProtocolLoc,
-                 IdentifierInfo **ProtoRefNames, unsigned NumProtoRefs) {
-  
-  TypeNameInfo *TI =
-  new TypeNameInfo(1, ProtocolName->getFETokenInfo<TypeNameInfo>());
-  
-  ProtocolName->setFETokenInfo(TI);
-  return 0;
-}
-
 /// ActOnForwardClassDeclaration - 
 /// Scope will always be top level file scope. 
 Action::DeclTy *
@@ -110,23 +97,6 @@
   return 0;
 }
 
-/// ActOnForwardProtocolDeclaration - 
-/// Scope will always be top level file scope. 
-Action::DeclTy *
-MinimalAction::ActOnForwardProtocolDeclaration(Scope *S, 
-  SourceLocation AtClassLoc, IdentifierInfo **IdentList, unsigned NumElts) {
-  for (unsigned i = 0; i != NumElts; ++i) {
-    TypeNameInfo *TI =
-    new TypeNameInfo(1, IdentList[i]->getFETokenInfo<TypeNameInfo>());
-    
-    IdentList[i]->setFETokenInfo(TI);
-    
-    // Remember that this needs to be removed when the scope is popped.
-    S->AddDecl(IdentList[i]);
-  }
-  return 0;
-}
-
 /// PopScope - When a scope is popped, if any typedefs are now out-of-scope,
 /// they are removed from the IdentifierInfo::FETokenInfo field.
 void MinimalAction::PopScope(SourceLocation Loc, Scope *S) {

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

==============================================================================
--- cfe/trunk/include/clang/Parse/Action.h (original)
+++ cfe/trunk/include/clang/Parse/Action.h Mon Oct  8 18:10:47 2007
@@ -606,20 +606,11 @@
                                                IdentifierInfo **IdentList,
                                                unsigned NumElts);
   
-  virtual DeclTy *ActOnForwardProtocolDeclaration(Scope *S, 
-                                                  SourceLocation AtProtocolLoc,
-                                                  IdentifierInfo **IdentList,
-                                                  unsigned NumElts);
-   
-  virtual DeclTy *ActOnStartClassInterface(Scope* S, SourceLocation AtInterafceLoc,
+  virtual DeclTy *ActOnStartClassInterface(Scope* S, SourceLocation interLoc,
                     IdentifierInfo *ClassName, SourceLocation ClassLoc,
                     IdentifierInfo *SuperName, SourceLocation SuperLoc,
                     IdentifierInfo **ProtocolNames, unsigned NumProtocols,
                     AttributeList *AttrList);
-  virtual DeclTy *ActOnStartProtocolInterface(Scope *S,
-		    SourceLocation AtProtoInterfaceLoc,
-                    IdentifierInfo *ProtocolName, SourceLocation ProtocolLoc,
-                    IdentifierInfo **ProtoRefNames, unsigned NumProtoRefs);
 };
 
 }  // end namespace clang





More information about the cfe-commits mailing list