summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-07-31 02:02:20 +0000
committerMike Stump <mrs@apple.com>2009-07-31 02:02:20 +0000
commite9c6ffc7d17438959931dfcf7060d5fa02ef104a (patch)
tree270f09aaa53e41dbf5fec57a78365fad21d815f3
parentbcb44baa5750b5a36ff0cb3c65a34aec5ca691ec (diff)
downloadbcm5719-llvm-e9c6ffc7d17438959931dfcf7060d5fa02ef104a.tar.gz
bcm5719-llvm-e9c6ffc7d17438959931dfcf7060d5fa02ef104a.zip
Whitespace around else canonicalization and fix 80-col violations.
llvm-svn: 77655
-rw-r--r--clang/lib/AST/ASTContext.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 51815d5f319..912b302f74e 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -1625,7 +1625,8 @@ QualType ASTContext::getTypeDeclType(TypeDecl *Decl, TypeDecl* PrevDecl) {
return getTypedefType(Typedef);
else if (isa<TemplateTypeParmDecl>(Decl)) {
assert(false && "Template type parameter types are always available.");
- } else if (ObjCInterfaceDecl *ObjCInterface = dyn_cast<ObjCInterfaceDecl>(Decl))
+ } else if (ObjCInterfaceDecl *ObjCInterface
+ = dyn_cast<ObjCInterfaceDecl>(Decl))
return getObjCInterfaceType(ObjCInterface);
if (RecordDecl *Record = dyn_cast<RecordDecl>(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<EnumDecl>(Decl)) {
+ } else if (EnumDecl *Enum = dyn_cast<EnumDecl>(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<PointerType>())
P = P->getAs<PointerType>()->getPointeeType();
OpenPOWER on IntegriCloud