[cfe-commits] r77400 - in /cfe/trunk: include/clang/AST/ASTContext.h lib/AST/ASTContext.cpp
Mike Stump
mrs at apple.com
Tue Jul 28 16:47:15 PDT 2009
Author: mrs
Date: Tue Jul 28 18:47:15 2009
New Revision: 77400
URL: http://llvm.org/viewvc/llvm-project?rev=77400&view=rev
Log:
Some style fixes, thanks Chris.
Modified:
cfe/trunk/include/clang/AST/ASTContext.h
cfe/trunk/lib/AST/ASTContext.cpp
Modified: cfe/trunk/include/clang/AST/ASTContext.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/ASTContext.h?rev=77400&r1=77399&r2=77400&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/ASTContext.h (original)
+++ cfe/trunk/include/clang/AST/ASTContext.h Tue Jul 28 18:47:15 2009
@@ -507,8 +507,9 @@
}
/// \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 @@
}
/// \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() {
Modified: cfe/trunk/lib/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ASTContext.cpp?rev=77400&r1=77399&r2=77400&view=diff
==============================================================================
--- cfe/trunk/lib/AST/ASTContext.cpp (original)
+++ cfe/trunk/lib/AST/ASTContext.cpp Tue Jul 28 18:47:15 2009
@@ -3978,27 +3978,23 @@
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)
More information about the cfe-commits
mailing list