From: Mike Stump Date: Tue, 28 Jul 2009 23:47:15 +0000 (+0000) Subject: Some style fixes, thanks Chris. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd612dbb23cd31c03c898ae53ff18d0dfd8488f9;p=clang Some style fixes, thanks Chris. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77400 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/ASTContext.h b/include/clang/AST/ASTContext.h index e7f2dccd5c..96ffcc7c4e 100644 --- a/include/clang/AST/ASTContext.h +++ b/include/clang/AST/ASTContext.h @@ -507,8 +507,9 @@ public: } /// \brief Set the type for the C jmp_buf type. - void setjmp_bufDecl(TypeDecl *jmp_bufDecl) - { this->jmp_bufDecl = jmp_bufDecl; } + void setjmp_bufDecl(TypeDecl *jmp_bufDecl) { + this->jmp_bufDecl = jmp_bufDecl; + } /// \brief Retrieve the C jmp_buf type. QualType getjmp_bufType() { @@ -518,8 +519,9 @@ public: } /// \brief Set the type for the C sigjmp_buf type. - void setsigjmp_bufDecl(TypeDecl *sigjmp_bufDecl) - { this->sigjmp_bufDecl = sigjmp_bufDecl; } + void setsigjmp_bufDecl(TypeDecl *sigjmp_bufDecl) { + this->sigjmp_bufDecl = sigjmp_bufDecl; + } /// \brief Retrieve the C sigjmp_buf type. QualType getsigjmp_bufType() { diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index d607ca7702..4da20f5a60 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -3978,27 +3978,23 @@ static QualType DecodeTypeFromStr(const char *&Str, ASTContext &Context, if (Type.isNull()) { Error = ASTContext::GE_Missing_FILE; return QualType(); - } else { - break; } + break; case 'J': if (Signed) { Type = Context.getsigjmp_bufType(); if (Type.isNull()) { Error = ASTContext::GE_Missing_sigjmp_buf; return QualType(); - } else { - break; - } - } else { - Type = Context.getjmp_bufType(); - if (Type.isNull()) { - Error = ASTContext::GE_Missing_jmp_buf; - return QualType(); - } else { - break; } + break; } + Type = Context.getjmp_bufType(); + if (Type.isNull()) { + Error = ASTContext::GE_Missing_jmp_buf; + return QualType(); + } + break; } if (!AllowTypeModifiers)