[cfe-commits] r55707 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Ted Kremenek
kremenek at apple.com
Wed Sep 3 11:03:35 PDT 2008
Author: kremenek
Date: Wed Sep 3 13:03:35 2008
New Revision: 55707
URL: http://llvm.org/viewvc/llvm-project?rev=55707&view=rev
Log:
Fix 80 col violations.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=55707&r1=55706&r2=55707&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Wed Sep 3 13:03:35 2008
@@ -116,8 +116,8 @@
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 @@
} 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 @@
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 @@
// 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");
More information about the cfe-commits
mailing list