aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2007-11-13 21:49:48 +0000
committerNate Begeman <natebegeman@mac.com>2007-11-13 21:49:48 +0000
commitbff5f5cfd194c3cc096ba89360fb537814a9666a (patch)
tree89c0c5534cb40e9a536dd6d93dd5040cd648ac20
parentb7908b5c54aeafc1ff98797e304d61c68b1aed25 (diff)
Rename Sema method to follow class naming convention
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44069 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Sema/Sema.h2
-rw-r--r--Sema/SemaDecl.cpp10
-rw-r--r--Sema/SemaType.cpp2
3 files changed, 7 insertions, 7 deletions
diff --git a/Sema/Sema.h b/Sema/Sema.h
index a443c94e3b..40b966e52b 100644
--- a/Sema/Sema.h
+++ b/Sema/Sema.h
@@ -233,7 +233,7 @@ private:
void AddTopLevelDecl(Decl *current, Decl *last);
/// More parsing and symbol table subroutines...
- ParmVarDecl *ParseParamDeclarator(struct DeclaratorChunk::ParamInfo &PI,
+ ParmVarDecl *ActOnParamDeclarator(struct DeclaratorChunk::ParamInfo &PI,
Scope *FnBodyScope);
ScopedDecl *LookupScopedDecl(IdentifierInfo *II, unsigned NSI,
SourceLocation IdLoc, Scope *S);
diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp
index 7f059b4554..6ae36c8c2b 100644
--- a/Sema/SemaDecl.cpp
+++ b/Sema/SemaDecl.cpp
@@ -800,7 +800,7 @@ Sema::DeclTy *Sema::FinalizeDeclaratorGroup(Scope *S, DeclTy *group) {
// Called from Sema::ParseStartOfFunctionDef().
ParmVarDecl *
-Sema::ParseParamDeclarator(struct DeclaratorChunk::ParamInfo &PI, Scope *FnScope)
+Sema::ActOnParamDeclarator(struct DeclaratorChunk::ParamInfo &PI, Scope *FnScope)
{
IdentifierInfo *II = PI.Ident;
// TODO: CHECK FOR CONFLICTS, multiple decls with same name in one scope.
@@ -895,7 +895,7 @@ Sema::DeclTy *Sema::ActOnStartOfFunctionDef(Scope *FnBodyScope, Declarator &D) {
// empty arg list, don't push any params.
} else {
for (unsigned i = 0, e = FTI.NumArgs; i != e; ++i) {
- Params.push_back(ParseParamDeclarator(D.getTypeObject(0).Fun.ArgInfo[i],
+ Params.push_back(ActOnParamDeclarator(D.getTypeObject(0).Fun.ArgInfo[i],
FnBodyScope));
}
}
@@ -988,18 +988,18 @@ void Sema::ObjcActOnStartOfMethodDef(Scope *FnBodyScope, DeclTy *D) {
PI.TypeInfo = selfTy.getAsOpaquePtr();
} else
PI.TypeInfo = Context.getObjcIdType().getAsOpaquePtr();
- Params.push_back(ParseParamDeclarator(PI, FnBodyScope));
+ Params.push_back(ActOnParamDeclarator(PI, FnBodyScope));
PI.Ident = &Context.Idents.get("_cmd");
PI.TypeInfo = Context.getObjcSelType().getAsOpaquePtr();
- Params.push_back(ParseParamDeclarator(PI, FnBodyScope));
+ Params.push_back(ActOnParamDeclarator(PI, FnBodyScope));
for (int i = 0; i < MDecl->getNumParams(); i++) {
ParmVarDecl *PDecl = MDecl->getParamDecl(i);
PI.Ident = PDecl->getIdentifier();
PI.IdentLoc = PDecl->getLocation(); // user vars have a real location.
PI.TypeInfo = PDecl->getType().getAsOpaquePtr();
- Params.push_back(ParseParamDeclarator(PI, FnBodyScope));
+ Params.push_back(ActOnParamDeclarator(PI, FnBodyScope));
}
NewFD->setParams(&Params[0], Params.size());
}
diff --git a/Sema/SemaType.cpp b/Sema/SemaType.cpp
index 2da843d977..b9592fc6c2 100644
--- a/Sema/SemaType.cpp
+++ b/Sema/SemaType.cpp
@@ -271,7 +271,7 @@ QualType Sema::GetTypeForDeclarator(Declarator &D, Scope *S) {
//
// Perform the default function/array conversion (C99 6.7.5.3p[7,8]).
// This matches the conversion that is done in
- // Sema::ParseParamDeclarator(). Without this conversion, the
+ // Sema::ActOnParamDeclarator(). Without this conversion, the
// argument type in the function prototype *will not* match the
// type in ParmVarDecl (which makes the code generator unhappy).
//