}
/// 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;
/// 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);
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.
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);