]> granicus.if.org Git - clang/commitdiff
Trivial formatting changes; no functional changes intended.
authorAaron Ballman <aaron@aaronballman.com>
Mon, 14 Oct 2013 23:26:04 +0000 (23:26 +0000)
committerAaron Ballman <aaron@aaronballman.com>
Mon, 14 Oct 2013 23:26:04 +0000 (23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@192640 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index b9ff4775425ff9e8c4682a6d0fda02347502bda6..c08767574ceb260388d8035259febde0fcffe988 100644 (file)
@@ -1029,8 +1029,8 @@ static bool checkForConsumableClass(Sema &S, const CXXMethodDecl *MD,
 
 static void handleCallableWhenAttr(Sema &S, Decl *D,
                                    const AttributeList &Attr) {
-  
-  if (!checkAttributeAtLeastNumArgs(S, Attr, 1)) return;
+  if (!checkAttributeAtLeastNumArgs(S, Attr, 1))
+    return;
 
   if (!isa<CXXMethodDecl>(D)) {
     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) <<
@@ -1118,7 +1118,8 @@ static void handleReturnTypestateAttr(Sema &S, Decl *D,
 
 
 static void handleSetTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr) {
-  if (!checkAttributeNumArgs(S, Attr, 1)) return;
+  if (!checkAttributeNumArgs(S, Attr, 1))
+    return;
 
   if (!isa<CXXMethodDecl>(D)) {
     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) <<
@@ -1151,7 +1152,8 @@ static void handleSetTypestateAttr(Sema &S, Decl *D, const AttributeList &Attr)
 
 static void handleTestsTypestateAttr(Sema &S, Decl *D,
                                         const AttributeList &Attr) {
-  if (!checkAttributeNumArgs(S, Attr, 1)) return;
+  if (!checkAttributeNumArgs(S, Attr, 1))
+    return;
   
   if (!isa<CXXMethodDecl>(D)) {
     S.Diag(Attr.getLoc(), diag::warn_attribute_wrong_decl_type) <<