diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-09-03 18:03:35 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-09-03 18:03:35 +0000 |
commit | a89d197c919e01ccb54d7822cc8886c373bcba00 (patch) | |
tree | df9a41b71c81ca084f36c928dcf0264a54fb1566 /lib/Sema/SemaDecl.cpp | |
parent | 386c69316668b9ea8c2591af56f994be16e3ff62 (diff) |
Fix 80 col violations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55707 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 7c660bf595..cc1ace7b33 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -116,8 +116,8 @@ void Sema::ActOnPopScope(SourceLocation Loc, Scope *S) { IdentifierInfo *II = D->getIdentifier(); if (!II) continue; - // We only want to remove the decls from the identifier decl chains for local - // scopes, when inside a function/method. + // We only want to remove the decls from the identifier decl chains for + // local scopes, when inside a function/method. if (S->getFnParent() != 0) IdResolver.RemoveDecl(D); @@ -1730,8 +1730,8 @@ Sema::DeclTy *Sema::ActOnTag(Scope *S, unsigned TagType, TagKind TK, } else { // PrevDecl is a namespace. if (IdResolver.isDeclInScope(PrevDecl, CurContext, S)) { - // The tag name clashes with a namespace name, issue an error and recover - // by making this tag be anonymous. + // The tag name clashes with a namespace name, issue an error and + // recover by making this tag be anonymous. Diag(NameLoc, diag::err_redefinition_different_kind, Name->getName()); Diag(PrevDecl->getLocation(), diag::err_previous_definition); Name = 0; @@ -1797,9 +1797,9 @@ static void CollectIvars(ObjCInterfaceDecl *Class, ASTContext& Ctx, CollectIvars(Class->getSuperClass(), Ctx, ivars); // For each ivar, create a fresh ObjCAtDefsFieldDecl. - for (ObjCInterfaceDecl::ivar_iterator I=Class->ivar_begin(), E=Class->ivar_end(); - I!=E; ++I) { - + for (ObjCInterfaceDecl::ivar_iterator + I=Class->ivar_begin(), E=Class->ivar_end(); I!=E; ++I) { + ObjCIvarDecl* ID = *I; ivars.push_back(ObjCAtDefsFieldDecl::Create(Ctx, ID->getLocation(), ID->getIdentifier(), @@ -1853,8 +1853,7 @@ Sema::DeclTy *Sema::ActOnField(Scope *S, // FIXME: Unnamed fields can be handled in various different ways, for // example, unnamed unions inject all members into the struct namespace! - - + if (BitWidth) { // TODO: Validate. //printf("WARNING: BITFIELDS IGNORED!\n"); |