aboutsummaryrefslogtreecommitdiff
path: root/include/clang
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2007-11-09 22:27:59 +0000
committerFariborz Jahanian <fjahanian@apple.com>2007-11-09 22:27:59 +0000
commit360300ca2ee298d585d29baf006519507d968812 (patch)
treeb94824afb408a9c8c22de5baff3749ef9e6e9538 /include/clang
parent7964c9f61e77b2cdf6c5c08c97ee2ea0c8360aec (diff)
Some code clean up in the form of name changes for functions which
process method definitions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43967 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang')
-rw-r--r--include/clang/Parse/Action.h7
-rw-r--r--include/clang/Parse/Parser.h2
2 files changed, 5 insertions, 4 deletions
diff --git a/include/clang/Parse/Action.h b/include/clang/Parse/Action.h
index 17bf9b9643..c91caded27 100644
--- a/include/clang/Parse/Action.h
+++ b/include/clang/Parse/Action.h
@@ -107,7 +107,8 @@ public:
return 0;
}
- virtual DeclTy *ObjcActOnDeclarator(Scope *S, DeclTy *D,DeclTy *LastInGroup) {
+ virtual DeclTy *ObjcActOnMethodDefinition(Scope *S, DeclTy *D,
+ DeclTy *LastInGroup) {
return 0;
}
/// AddInitializerToDecl - This action is called immediately after
@@ -134,9 +135,9 @@ public:
return ActOnDeclarator(FnBodyScope, D, 0);
}
- virtual DeclTy *ObjcActOnStartOfFunctionDef(Scope *FnBodyScope, DeclTy *D) {
+ virtual DeclTy *ObjcActOnStartOfMethodDef(Scope *FnBodyScope, DeclTy *D) {
// Default to ActOnDeclarator.
- return ObjcActOnDeclarator(FnBodyScope, D, 0);
+ return ObjcActOnMethodDefinition(FnBodyScope, D, 0);
}
/// ActOnFunctionDefBody - This is called when a function body has completed
diff --git a/include/clang/Parse/Parser.h b/include/clang/Parse/Parser.h
index e453aa769e..3a1e7d18ce 100644
--- a/include/clang/Parse/Parser.h
+++ b/include/clang/Parse/Parser.h
@@ -250,7 +250,7 @@ private:
DeclTy *ParseExternalDeclaration();
DeclTy *ParseDeclarationOrFunctionDefinition();
DeclTy *ParseFunctionDefinition(Declarator &D);
- DeclTy *ObjcParseFunctionDefinition(DeclTy *D);
+ DeclTy *ObjcParseMethodDefinition(DeclTy *D);
void ParseKNRParamDeclarations(Declarator &D);
void ParseSimpleAsm();
void ParseAsmStringLiteral();