aboutsummaryrefslogtreecommitdiff
path: root/Parse/ParseObjc.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2007-11-10 20:59:13 +0000
committerFariborz Jahanian <fjahanian@apple.com>2007-11-10 20:59:13 +0000
commitdb8f3d3bb96c75440f513c43ac73adace2aae5ff (patch)
tree9861742508b038244dac095d286da307ca3f6d0c /Parse/ParseObjc.cpp
parentf68a63f9cf4d31bc009cc2831b4857fb13ee1a30 (diff)
pretty priting for method definitions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Parse/ParseObjc.cpp')
-rw-r--r--Parse/ParseObjc.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/Parse/ParseObjc.cpp b/Parse/ParseObjc.cpp
index b5f742961d..4fbbc1854f 100644
--- a/Parse/ParseObjc.cpp
+++ b/Parse/ParseObjc.cpp
@@ -38,7 +38,7 @@ Parser::DeclTy *Parser::ParseObjCAtDirectives() {
case tok::objc_protocol:
return ParseObjCAtProtocolDeclaration(AtLoc);
case tok::objc_implementation:
- return ObjcImpDecl = ParseObjCAtImplementationDeclaration(AtLoc);
+ return ParseObjCAtImplementationDeclaration(AtLoc);
case tok::objc_end:
return ParseObjCAtEndDeclaration(AtLoc);
case tok::objc_compatibility_alias:
@@ -911,7 +911,8 @@ Parser::DeclTy *Parser::ParseObjCAtImplementationDeclaration(
DeclTy *ImplCatType = Actions.ActOnStartCategoryImplementation(
atLoc, nameId, nameLoc, categoryId,
categoryLoc);
- return ImplCatType;
+ ObjcImpDecl = ImplCatType;
+ return 0;
}
// We have a class implementation
SourceLocation superClassLoc;
@@ -932,8 +933,9 @@ Parser::DeclTy *Parser::ParseObjCAtImplementationDeclaration(
if (Tok.is(tok::l_brace)) // we have ivars
ParseObjCClassInstanceVariables(ImplClsType/*FIXME*/, atLoc);
+ ObjcImpDecl = ImplClsType;
- return ImplClsType;
+ return 0;
}
Parser::DeclTy *Parser::ParseObjCAtEndDeclaration(SourceLocation atLoc) {
@@ -949,11 +951,10 @@ Parser::DeclTy *Parser::ParseObjCAtEndDeclaration(SourceLocation atLoc) {
&AllImplMethods[0], AllImplMethods.size(),
(DeclTy **)0, 0,
atLoc);
- ObjcImpDecl = 0;
AllImplMethods.clear();
}
- return 0;
+ return ObjcImpDecl;
}
/// compatibility-alias-decl: