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
diff --git a/Sema/Sema.h b/Sema/Sema.h
index a443c94..40b966e 100644
--- a/Sema/Sema.h
+++ b/Sema/Sema.h
@@ -233,7 +233,7 @@
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 7f059b4..6ae36c8 100644
--- a/Sema/SemaDecl.cpp
+++ b/Sema/SemaDecl.cpp
@@ -800,7 +800,7 @@
// 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 @@
// 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 @@
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 2da843d..b9592fc 100644
--- a/Sema/SemaType.cpp
+++ b/Sema/SemaType.cpp
@@ -271,7 +271,7 @@
//
// 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).
//