[cfe-commits] r39101 - /cfe/cfe/trunk/Parse/MinimalAction.cpp

sabre at cs.uiuc.edu sabre at cs.uiuc.edu
Wed Jul 11 09:27:31 PDT 2007


Author: sabre
Date: Wed Jul 11 11:27:31 2007
New Revision: 39101

URL: http://llvm.org/viewvc/llvm-project?rev=39101&view=rev
Log:
improve comment, fit to 80 cols

Modified:
    cfe/cfe/trunk/Parse/MinimalAction.cpp

Modified: cfe/cfe/trunk/Parse/MinimalAction.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Parse/MinimalAction.cpp?rev=39101&r1=39100&r2=39101&view=diff

==============================================================================
--- cfe/cfe/trunk/Parse/MinimalAction.cpp (original)
+++ cfe/cfe/trunk/Parse/MinimalAction.cpp Wed Jul 11 11:27:31 2007
@@ -30,8 +30,9 @@
     
 };
 
-/// isTypedefName - This looks at the IdentifierInfo::FETokenInfo field to
-/// determine whether the name is a typedef or not in this scope.
+/// isTypeName - This looks at the IdentifierInfo::FETokenInfo field to
+/// determine whether the name is a type name (objc class name or typedef) or
+/// not in this scope.
 bool EmptyAction::isTypeName(const IdentifierInfo &II, Scope *S) const {
   TypeNameInfo *TI = II.getFETokenInfo<TypeNameInfo>();
   return TI != 0 && TI->isTypeName;
@@ -65,18 +66,20 @@
   return 0;
 }
 
-// Scope will always be top level file scope. 
-
+/// ParsedClassDeclaration - 
+/// Scope will always be top level file scope. 
 Action::DeclTy *
 EmptyAction::ParsedClassDeclaration(Scope *S,
-									IdentifierInfo **identList, unsigned nElements) {
-  for (unsigned i = 0; i < nElements; i++) {
-    TypeNameInfo *TI = new TypeNameInfo(1, identList[i]->getFETokenInfo<TypeNameInfo>());
+                                    IdentifierInfo **IdentList,
+                                    unsigned NumElts) {
+  for (unsigned i = 0; i != NumElts; ++i) {
+    TypeNameInfo *TI =
+      new TypeNameInfo(1, IdentList[i]->getFETokenInfo<TypeNameInfo>());
 
-    identList[i]->setFETokenInfo(TI);
+    IdentList[i]->setFETokenInfo(TI);
   
     // Remember that this needs to be removed when the scope is popped.
-    S->AddDecl(identList[i]);
+    S->AddDecl(IdentList[i]);
   }
   return 0;
 }





More information about the cfe-commits mailing list