From: Chris Lattner Date: Wed, 10 Oct 2007 23:42:28 +0000 (+0000) Subject: Fix 80 col violations. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22b73ba6c6bbac2b117f7e27d53ea683ede14c68;p=clang Fix 80 col violations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42849 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/AST/Builtins.cpp b/AST/Builtins.cpp index a848028612..a227bac480 100644 --- a/AST/Builtins.cpp +++ b/AST/Builtins.cpp @@ -152,7 +152,8 @@ static QualType DecodeTypeFromStr(const char *&Str, ASTContext &Context) { } /// GetBuiltinType - Return the type for the specified builtin. -QualType Builtin::Context::GetBuiltinType(unsigned id, ASTContext &Context)const{ +QualType Builtin::Context::GetBuiltinType(unsigned id, + ASTContext &Context) const { const char *TypeStr = GetRecord(id).Type; llvm::SmallVector ArgTypes; diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp index 1d15d7b485..051a4c192a 100644 --- a/Sema/SemaDecl.cpp +++ b/Sema/SemaDecl.cpp @@ -133,7 +133,8 @@ ScopedDecl *Sema::LookupScopedDecl(IdentifierInfo *II, unsigned NSI, /// LazilyCreateBuiltin - The specified Builtin-ID was first used at file scope. /// lazily create a decl for it. -ScopedDecl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned bid, Scope *S) { +ScopedDecl *Sema::LazilyCreateBuiltin(IdentifierInfo *II, unsigned bid, + Scope *S) { Builtin::ID BID = (Builtin::ID)bid; QualType R = Context.BuiltinInfo.GetBuiltinType(BID, Context); diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp index 08e1368513..44b3e73fbb 100644 --- a/Sema/SemaExpr.cpp +++ b/Sema/SemaExpr.cpp @@ -1887,7 +1887,8 @@ Sema::ExprResult Sema::ActOnClassMessage( QualType retType = Method->getMethodType(); // Expr *RExpr = global reference to the class symbol... Expr **ArgExprs = reinterpret_cast(Args); - return new ObjCMessageExpr(receiverName, Sel, retType, lbrac, rbrac, ArgExprs); + return new ObjCMessageExpr(receiverName, Sel, retType, lbrac, rbrac, + ArgExprs); } // ActOnInstanceMessage - used for both unary and keyword messages. @@ -1906,13 +1907,15 @@ Sema::ExprResult Sema::ActOnInstanceMessage( if (receiverType == GetObjcIdType()) { returnType = Context.IntTy; // FIXME:just a placeholder } else { - // FIXME (snaroff): checking in this code from Patrick. Needs to be revisited. - // how do we get the ClassDecl from the receiver expression? + // FIXME (snaroff): checking in this code from Patrick. Needs to be + // revisited. how do we get the ClassDecl from the receiver expression? while (receiverType->isPointerType()) { - PointerType *pointerType = static_cast(receiverType.getTypePtr()); + PointerType *pointerType = + static_cast(receiverType.getTypePtr()); receiverType = pointerType->getPointeeType(); } - assert(ObjcInterfaceType::classof(receiverType.getTypePtr()) && "bad receiver type"); + assert(ObjcInterfaceType::classof(receiverType.getTypePtr()) && + "bad receiver type"); ObjcInterfaceDecl* ClassDecl = static_cast( receiverType.getTypePtr())->getDecl(); ObjcMethodDecl *Method = ClassDecl->lookupInstanceMethod(Sel);