]> granicus.if.org Git - clang/commitdiff
Fix 80 col violations.
authorChris Lattner <sabre@nondot.org>
Wed, 10 Oct 2007 23:42:28 +0000 (23:42 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 10 Oct 2007 23:42:28 +0000 (23:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42849 91177308-0d34-0410-b5e6-96231b3b80d8

AST/Builtins.cpp
Sema/SemaDecl.cpp
Sema/SemaExpr.cpp

index a84802861203285c3d9487db44e16ef130bb6d4f..a227bac480cdd7fafaeed60868c15014c4a59c4b 100644 (file)
@@ -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<QualType, 8> ArgTypes;
index 1d15d7b48570a9ec71e8ec93a7609eb74d8c3e95..051a4c192a29dc50d6ad0263500d022251298caf 100644 (file)
@@ -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);
index 08e13685135ffc271f541efc1047859ff242839c..44b3e73fbb44e077655a1aa7f3734403a64e626b 100644 (file)
@@ -1887,7 +1887,8 @@ Sema::ExprResult Sema::ActOnClassMessage(
   QualType retType = Method->getMethodType();
   // Expr *RExpr = global reference to the class symbol...
   Expr **ArgExprs = reinterpret_cast<Expr **>(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<PointerType*>(receiverType.getTypePtr());
+      PointerType *pointerType =
+        static_cast<PointerType*>(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<ObjcInterfaceType*>(
                                      receiverType.getTypePtr())->getDecl();
     ObjcMethodDecl *Method = ClassDecl->lookupInstanceMethod(Sel);