[cfe-commits] r98320 - /cfe/trunk/lib/Sema/SemaObjCProperty.cpp
Ted Kremenek
kremenek at apple.com
Thu Mar 11 16:49:00 PST 2010
Author: kremenek
Date: Thu Mar 11 18:49:00 2010
New Revision: 98320
URL: http://llvm.org/viewvc/llvm-project?rev=98320&view=rev
Log:
Fix 80 col violations.
Modified:
cfe/trunk/lib/Sema/SemaObjCProperty.cpp
Modified: cfe/trunk/lib/Sema/SemaObjCProperty.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaObjCProperty.cpp?rev=98320&r1=98319&r2=98320&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaObjCProperty.cpp (original)
+++ cfe/trunk/lib/Sema/SemaObjCProperty.cpp Thu Mar 11 18:49:00 2010
@@ -58,10 +58,9 @@
Diag((*Found.first)->getLocation(), diag::note_property_declare);
return DeclPtrTy();
}
- ObjCPropertyDecl *PDecl = ObjCPropertyDecl::Create(Context, DC,
- FD.D.getIdentifierLoc(),
- FD.D.getIdentifier(),
- AtLoc, T);
+ ObjCPropertyDecl *PDecl =
+ ObjCPropertyDecl::Create(Context, DC, FD.D.getIdentifierLoc(),
+ FD.D.getIdentifier(), AtLoc, T);
DC->addDecl(PDecl);
// This is a continuation class. property requires special
@@ -97,17 +96,19 @@
if (!PropertyInPrimaryClass) {
// Protocol is not in the primary class. Must build one for it.
ObjCDeclSpec ProtocolPropertyODS;
- // FIXME. Assuming that ObjCDeclSpec::ObjCPropertyAttributeKind and
- // ObjCPropertyDecl::PropertyAttributeKind have identical values.
- // Should consolidate both into one enum type.
- ProtocolPropertyODS.setPropertyAttributes(
- (ObjCDeclSpec::ObjCPropertyAttributeKind)PIkind);
+ // FIXME. Assuming that ObjCDeclSpec::ObjCPropertyAttributeKind
+ // and ObjCPropertyDecl::PropertyAttributeKind have identical
+ // values. Should consolidate both into one enum type.
+ ProtocolPropertyODS.
+ setPropertyAttributes((ObjCDeclSpec::ObjCPropertyAttributeKind)
+ PIkind);
+
DeclPtrTy ProtocolPtrTy =
- ActOnProperty(S, AtLoc, FD, ProtocolPropertyODS,
- PIDecl->getGetterName(),
- PIDecl->getSetterName(),
- DeclPtrTy::make(CCPrimary), isOverridingProperty,
- MethodImplKind);
+ ActOnProperty(S, AtLoc, FD, ProtocolPropertyODS,
+ PIDecl->getGetterName(),
+ PIDecl->getSetterName(),
+ DeclPtrTy::make(CCPrimary), isOverridingProperty,
+ MethodImplKind);
PIDecl = ProtocolPtrTy.getAs<ObjCPropertyDecl>();
}
PIDecl->makeitReadWriteAttribute();
@@ -530,7 +531,7 @@
ObjCPropertyDecl *Pr = (*P);
ObjCCategoryDecl::prop_iterator CP, CE;
// Is this property already in category's list of properties?
- for (CP = CatDecl->prop_begin(), CE = CatDecl->prop_end(); CP != CE; ++CP)
+ for (CP = CatDecl->prop_begin(), CE = CatDecl->prop_end(); CP!=CE; ++CP)
if ((*CP)->getIdentifier() == Pr->getIdentifier())
break;
if (CP != CE)
More information about the cfe-commits
mailing list