Some style fixes, thanks Chris.

llvm-svn: 77400
This commit is contained in:
Mike Stump 2009-07-28 23:47:15 +00:00
parent 23b177e86e
commit 2adb4dab54
2 changed files with 14 additions and 16 deletions

View File

@ -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() {

View File

@ -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)