Uran198 created this revision.
Uran198 added reviewers: djasper, klimek.

Repository:
  rC Clang

https://reviews.llvm.org/D47515

Files:
  lib/Format/Format.cpp


Index: lib/Format/Format.cpp
===================================================================
--- lib/Format/Format.cpp
+++ lib/Format/Format.cpp
@@ -1558,9 +1558,9 @@
                                TT_ObjCMethodSpecifier, TT_ObjCProperty)) {
           return true;
         }
-        if (guessIsObjC(Line->Children, Keywords))
-          return true;
       }
+      if (guessIsObjC(Line->Children, Keywords))
+        return true;
     }
     return false;
   }


Index: lib/Format/Format.cpp
===================================================================
--- lib/Format/Format.cpp
+++ lib/Format/Format.cpp
@@ -1558,9 +1558,9 @@
                                TT_ObjCMethodSpecifier, TT_ObjCProperty)) {
           return true;
         }
-        if (guessIsObjC(Line->Children, Keywords))
-          return true;
       }
+      if (guessIsObjC(Line->Children, Keywords))
+        return true;
     }
     return false;
   }
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to