]> granicus.if.org Git - clang/commitdiff
Rename Sema method to follow class naming convention
authorNate Begeman <natebegeman@mac.com>
Tue, 13 Nov 2007 21:49:48 +0000 (21:49 +0000)
committerNate Begeman <natebegeman@mac.com>
Tue, 13 Nov 2007 21:49:48 +0000 (21:49 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44069 91177308-0d34-0410-b5e6-96231b3b80d8

Sema/Sema.h
Sema/SemaDecl.cpp
Sema/SemaType.cpp

index a443c94e3bf6bdbef507ec67232c0aca0e9a4011..40b966e52b67eca07f5ca3aa6475b3e9fb7b06bc 100644 (file)
@@ -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);
index 7f059b45545c5e39d29a8a2aa2a55382d6ca4c2d..6ae36c8c2b2c91aa992a3fd28b423040d7f1c425 100644 (file)
@@ -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());
 }
index 2da843d977795a5fc214041e1c4b2cf0bc97f08b..b9592fc6c2d8fee9d0fb61cdc4e42afe81108c31 100644 (file)
@@ -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).
           //