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 *
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) {
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