[cfe-commits] r42849 - in /cfe/trunk: AST/Builtins.cpp Sema/SemaDecl.cpp Sema/SemaExpr.cpp

Chris Lattner sabre at nondot.org
Wed Oct 10 16:42:28 PDT 2007


Author: lattner
Date: Wed Oct 10 18:42:28 2007
New Revision: 42849

URL: http://llvm.org/viewvc/llvm-project?rev=42849&view=rev
Log:
Fix 80 col violations.

Modified:
    cfe/trunk/AST/Builtins.cpp
    cfe/trunk/Sema/SemaDecl.cpp
    cfe/trunk/Sema/SemaExpr.cpp

Modified: cfe/trunk/AST/Builtins.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/Builtins.cpp?rev=42849&r1=42848&r2=42849&view=diff

==============================================================================
--- cfe/trunk/AST/Builtins.cpp (original)
+++ cfe/trunk/AST/Builtins.cpp Wed Oct 10 18:42:28 2007
@@ -152,7 +152,8 @@
 }
 
 /// 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;

Modified: cfe/trunk/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaDecl.cpp?rev=42849&r1=42848&r2=42849&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/Sema/SemaDecl.cpp Wed Oct 10 18:42:28 2007
@@ -133,7 +133,8 @@
 
 /// 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);

Modified: cfe/trunk/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Sema/SemaExpr.cpp?rev=42849&r1=42848&r2=42849&view=diff

==============================================================================
--- cfe/trunk/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/Sema/SemaExpr.cpp Wed Oct 10 18:42:28 2007
@@ -1887,7 +1887,8 @@
   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 @@
   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);





More information about the cfe-commits mailing list