[cfe-commits] r45210 - /cfe/trunk/AST/ASTContext.cpp
Chris Lattner
sabre at nondot.org
Wed Dec 19 11:23:28 PST 2007
Author: lattner
Date: Wed Dec 19 13:23:28 2007
New Revision: 45210
URL: http://llvm.org/viewvc/llvm-project?rev=45210&view=rev
Log:
fix some crazy indentation
Modified:
cfe/trunk/AST/ASTContext.cpp
Modified: cfe/trunk/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/ASTContext.cpp?rev=45210&r1=45209&r2=45210&view=diff
==============================================================================
--- cfe/trunk/AST/ASTContext.cpp (original)
+++ cfe/trunk/AST/ASTContext.cpp Wed Dec 19 13:23:28 2007
@@ -218,53 +218,54 @@
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: {
More information about the cfe-commits
mailing list