From 9fdbab3cbc2fc04bcaf5768023d83707f3151144 Mon Sep 17 00:00:00 2001 From: Mike Stump Date: Fri, 31 Jul 2009 02:02:20 +0000 Subject: [PATCH] Whitespace around else canonicalization and fix 80-col violations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77655 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ASTContext.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 51815d5f31..912b302f74 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -1625,7 +1625,8 @@ QualType ASTContext::getTypeDeclType(TypeDecl *Decl, TypeDecl* PrevDecl) { return getTypedefType(Typedef); else if (isa(Decl)) { assert(false && "Template type parameter types are always available."); - } else if (ObjCInterfaceDecl *ObjCInterface = dyn_cast(Decl)) + } else if (ObjCInterfaceDecl *ObjCInterface + = dyn_cast(Decl)) return getObjCInterfaceType(ObjCInterface); if (RecordDecl *Record = dyn_cast(Decl)) { @@ -1633,14 +1634,12 @@ QualType ASTContext::getTypeDeclType(TypeDecl *Decl, TypeDecl* PrevDecl) { Decl->TypeForDecl = PrevDecl->TypeForDecl; else Decl->TypeForDecl = new (*this,8) RecordType(Record); - } - else if (EnumDecl *Enum = dyn_cast(Decl)) { + } else if (EnumDecl *Enum = dyn_cast(Decl)) { if (PrevDecl) Decl->TypeForDecl = PrevDecl->TypeForDecl; else Decl->TypeForDecl = new (*this,8) EnumType(Enum); - } - else + } else assert(false && "TypeDecl without a type?"); if (!PrevDecl) Types.push_back(Decl->TypeForDecl); @@ -2820,8 +2819,7 @@ void ASTContext::getObjCEncodingForTypeImpl(QualType T, std::string& S, isReadOnly = true; S += 'r'; } - } - else if (OutermostType) { + } else if (OutermostType) { QualType P = PointeeTy; while (P->getAs()) P = P->getAs()->getPointeeType(); -- 2.40.0