зеркало из https://github.com/microsoft/clang-1.git
Fix 80 col violations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@98320 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
28685ab2dd
Коммит
2d2f9368d3
|
@ -58,10 +58,9 @@ Sema::DeclPtrTy Sema::ActOnProperty(Scope *S, SourceLocation AtLoc,
|
|||
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,11 +96,13 @@ Sema::DeclPtrTy Sema::ActOnProperty(Scope *S, SourceLocation AtLoc,
|
|||
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(),
|
||||
|
|
Загрузка…
Ссылка в новой задаче