]> granicus.if.org Git - clang/commitdiff
fix some crazy indentation
authorChris Lattner <sabre@nondot.org>
Wed, 19 Dec 2007 19:23:28 +0000 (19:23 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 19 Dec 2007 19:23:28 +0000 (19:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45210 91177308-0d34-0410-b5e6-96231b3b80d8

AST/ASTContext.cpp

index 06d6888e19e3e8355df6b8689287c54ec724eb5d..6520fa920e1335fec676d16a440da673eefa22f9 100644 (file)
@@ -218,53 +218,54 @@ ASTContext::getTypeInfo(QualType T, SourceLocation L) {
     default: assert(0 && "Unknown builtin type!");
     case BuiltinType::Void:
       assert(0 && "Incomplete types have no size!");
-    case BuiltinType::Bool:       Target.getBoolInfo(Size,Align,getFullLoc(L));
-                                  break;
-        
+    case BuiltinType::Bool:
+      Target.getBoolInfo(Size, Align, getFullLoc(L));
+      break;
     case BuiltinType::Char_S:
     case BuiltinType::Char_U:
     case BuiltinType::UChar:
-    case BuiltinType::SChar:      Target.getCharInfo(Size,Align,getFullLoc(L));
-                                  break;
-        
+    case BuiltinType::SChar:
+      Target.getCharInfo(Size, Align, getFullLoc(L));
+      break;
     case BuiltinType::UShort:
-    case BuiltinType::Short:      Target.getShortInfo(Size,Align,getFullLoc(L));
-                                  break;
-        
+    case BuiltinType::Short:
+      Target.getShortInfo(Size, Align, getFullLoc(L));
+      break;
     case BuiltinType::UInt:
-    case BuiltinType::Int:        Target.getIntInfo(Size,Align,getFullLoc(L));
-                                  break;
-        
+    case BuiltinType::Int:
+      Target.getIntInfo(Size, Align, getFullLoc(L));
+      break;
     case BuiltinType::ULong:
-    case BuiltinType::Long:       Target.getLongInfo(Size,Align,getFullLoc(L));
-                                  break;
-        
+    case BuiltinType::Long:
+      Target.getLongInfo(Size, Align, getFullLoc(L));
+      break;
     case BuiltinType::ULongLong:
-    case BuiltinType::LongLong:   Target.getLongLongInfo(Size,Align,
-                                                         getFullLoc(L));
-                                  break;
-        
-      case BuiltinType::Float:    Target.getFloatInfo(Size,Align,F,
-                                                      getFullLoc(L));
-                                  break;
-        
-    case BuiltinType::Double:     Target.getDoubleInfo(Size,Align,F,
-                                                       getFullLoc(L));
-                                  break;
-        
-    case BuiltinType::LongDouble: Target.getLongDoubleInfo(Size,Align,F,
-                                                           getFullLoc(L));
-                                  break;
+    case BuiltinType::LongLong:
+      Target.getLongLongInfo(Size, Align, getFullLoc(L));
+      break;
+    case BuiltinType::Float:
+      Target.getFloatInfo(Size, Align, F, getFullLoc(L));
+      break;
+    case BuiltinType::Double:
+      Target.getDoubleInfo(Size, Align, F, getFullLoc(L));
+      break;
+    case BuiltinType::LongDouble:
+      Target.getLongDoubleInfo(Size, Align, F, getFullLoc(L));
+      break;
     }
     break;
   }
-  case Type::ObjcQualifiedId: Target.getPointerInfo(Size, Align, getFullLoc(L));
-                             break;
-  case Type::Pointer: Target.getPointerInfo(Size, Align, getFullLoc(L)); break;
+  case Type::ObjcQualifiedId:
+    Target.getPointerInfo(Size, Align, getFullLoc(L));
+    break;
+  case Type::Pointer:
+    Target.getPointerInfo(Size, Align, getFullLoc(L));
+    break;
   case Type::Reference:
     // "When applied to a reference or a reference type, the result is the size
     // of the referenced type." C++98 5.3.3p2: expr.sizeof.
-    // FIXME: This is wrong for struct layout!
+    // FIXME: This is wrong for struct layout: a reference in a struct has
+    // pointer size.
     return getTypeInfo(cast<ReferenceType>(T)->getReferenceeType(), L);
     
   case Type::Complex: {