[cfe-commits] r39183 - in /cfe/cfe/trunk: Parse/MinimalAction.cpp Parse/ParseObjc.cpp include/clang/Parse/Action.h
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:40:43 PDT 2007
Author: sabre
Date: Wed Jul 11 11:40:43 2007
New Revision: 39183
URL: http://llvm.org/viewvc/llvm-project?rev=39183&view=rev
Log:
rename ParsedClassDeclaration -> ParsedObjcClassDeclaration.
Modified:
cfe/cfe/trunk/Parse/MinimalAction.cpp
cfe/cfe/trunk/Parse/ParseObjc.cpp
cfe/cfe/trunk/include/clang/Parse/Action.h
Modified: cfe/cfe/trunk/Parse/MinimalAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Parse/MinimalAction.cpp?rev=39183&r1=39182&r2=39183&view=diff
==============================================================================
--- cfe/cfe/trunk/Parse/MinimalAction.cpp (original)
+++ cfe/cfe/trunk/Parse/MinimalAction.cpp Wed Jul 11 11:40:43 2007
@@ -65,12 +65,12 @@
return 0;
}
-/// ParsedClassDeclaration -
+/// ParsedObjcClassDeclaration -
/// Scope will always be top level file scope.
Action::DeclTy *
-MinimalAction::ParsedClassDeclaration(Scope *S,
- IdentifierInfo **IdentList,
- unsigned NumElts) {
+MinimalAction::ParsedObjcClassDeclaration(Scope *S,
+ IdentifierInfo **IdentList,
+ unsigned NumElts) {
for (unsigned i = 0; i != NumElts; ++i) {
TypeNameInfo *TI =
new TypeNameInfo(1, IdentList[i]->getFETokenInfo<TypeNameInfo>());
Modified: cfe/cfe/trunk/Parse/ParseObjc.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Parse/ParseObjc.cpp?rev=39183&r1=39182&r2=39183&view=diff
==============================================================================
--- cfe/cfe/trunk/Parse/ParseObjc.cpp (original)
+++ cfe/cfe/trunk/Parse/ParseObjc.cpp Wed Jul 11 11:40:43 2007
@@ -77,7 +77,8 @@
if (ExpectAndConsume(tok::semi, diag::err_expected_semi_after, "@class"))
return;
- Actions.ParsedClassDeclaration(CurScope, &ClassNames[0], ClassNames.size());
+ Actions.ParsedObjcClassDeclaration(CurScope,
+ &ClassNames[0], ClassNames.size());
}
void Parser::ParseObjCAtInterfaceDeclaration() {
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=39183&r1=39182&r2=39183&view=diff
==============================================================================
--- cfe/cfe/trunk/include/clang/Parse/Action.h (original)
+++ cfe/cfe/trunk/include/clang/Parse/Action.h Wed Jul 11 11:40:43 2007
@@ -77,7 +77,7 @@
typedef ActionResult<2> TypeResult;
//===--------------------------------------------------------------------===//
- // Symbol Table Tracking Callbacks.
+ // Declaration Tracking Callbacks.
//===--------------------------------------------------------------------===//
/// isTypeName - Return true if the specified identifier is a typedef name
@@ -109,13 +109,12 @@
/// is popped and deleted.
virtual void PopScope(SourceLocation Loc, Scope *S) {}
- //===--------------------------------------------------------------------===//
- // 'External Declaration' (Top Level) Parsing Callbacks.
- //===--------------------------------------------------------------------===//
- virtual DeclTy *ParsedClassDeclaration(Scope *S,
- IdentifierInfo **IdentList,
- unsigned NumElts) {
+
+
+ virtual DeclTy *ParsedObjcClassDeclaration(Scope *S,
+ IdentifierInfo **IdentList,
+ unsigned NumElts) {
return 0;
}
@@ -306,9 +305,9 @@
/// they are removed from the IdentifierInfo::FETokenInfo field.
virtual void PopScope(SourceLocation Loc, Scope *S);
- virtual DeclTy *ParsedClassDeclaration(Scope *S,
- IdentifierInfo **IdentList,
- unsigned NumElts);
+ virtual DeclTy *ParsedObjcClassDeclaration(Scope *S,
+ IdentifierInfo **IdentList,
+ unsigned NumElts);
};
More information about the cfe-commits
mailing list