aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-10-10 23:42:28 +0000
committerChris Lattner <sabre@nondot.org>2007-10-10 23:42:28 +0000
commit22b73ba6c6bbac2b117f7e27d53ea683ede14c68 (patch)
treeea488e9089a7cc0e9303db89ae987cef9cc765be
parenta1a5178232cd94bf96da977830330084d5a857b6 (diff)
Fix 80 col violations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@42849 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--AST/Builtins.cpp3
-rw-r--r--Sema/SemaDecl.cpp3
-rw-r--r--Sema/SemaExpr.cpp13
3 files changed, 12 insertions, 7 deletions
diff --git a/AST/Builtins.cpp b/AST/Builtins.cpp
index a848028612..a227bac480 100644
--- a/AST/Builtins.cpp
+++ b/AST/Builtins.cpp
@@ -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;
diff --git a/Sema/SemaDecl.cpp b/Sema/SemaDecl.cpp
index 1d15d7b485..051a4c192a 100644
--- a/Sema/SemaDecl.cpp
+++ b/Sema/SemaDecl.cpp
@@ -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);
diff --git a/Sema/SemaExpr.cpp b/Sema/SemaExpr.cpp
index 08e1368513..44b3e73fbb 100644
--- a/Sema/SemaExpr.cpp
+++ b/Sema/SemaExpr.cpp
@@ -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);