improve comment, fit to 80 cols

llvm-svn: 39101
This commit is contained in:
Chris Lattner 2006-11-03 07:35:12 +00:00
parent 70058dda70
commit 64b09ee57a
1 changed files with 12 additions and 9 deletions

View File

@ -30,8 +30,9 @@ struct TypeNameInfo {
}; };
/// isTypedefName - This looks at the IdentifierInfo::FETokenInfo field to /// isTypeName - This looks at the IdentifierInfo::FETokenInfo field to
/// determine whether the name is a typedef or not in this scope. /// 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 { bool EmptyAction::isTypeName(const IdentifierInfo &II, Scope *S) const {
TypeNameInfo *TI = II.getFETokenInfo<TypeNameInfo>(); TypeNameInfo *TI = II.getFETokenInfo<TypeNameInfo>();
return TI != 0 && TI->isTypeName; return TI != 0 && TI->isTypeName;
@ -65,18 +66,20 @@ EmptyAction::ParseDeclarator(Scope *S, Declarator &D, ExprTy *Init,
return 0; return 0;
} }
// Scope will always be top level file scope. /// ParsedClassDeclaration -
/// Scope will always be top level file scope.
Action::DeclTy * Action::DeclTy *
EmptyAction::ParsedClassDeclaration(Scope *S, EmptyAction::ParsedClassDeclaration(Scope *S,
IdentifierInfo **identList, unsigned nElements) { IdentifierInfo **IdentList,
for (unsigned i = 0; i < nElements; i++) { unsigned NumElts) {
TypeNameInfo *TI = new TypeNameInfo(1, identList[i]->getFETokenInfo<TypeNameInfo>()); 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. // Remember that this needs to be removed when the scope is popped.
S->AddDecl(identList[i]); S->AddDecl(IdentList[i]);
} }
return 0; return 0;
} }