]> granicus.if.org Git - clang/commitdiff
formatting
authorMartin Probst <martin@probst.io>
Wed, 26 Apr 2017 12:34:18 +0000 (12:34 +0000)
committerMartin Probst <martin@probst.io>
Wed, 26 Apr 2017 12:34:18 +0000 (12:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@301398 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Format/TokenAnnotator.cpp

index 86380c6e6f1dab2bfbb601d33eb0ee35649612b5..679b73ffa90536afe73c77a796c92fce986f5ef4 100644 (file)
@@ -2541,13 +2541,11 @@ bool TokenAnnotator::canBreakBefore(const AnnotatedLine &Line,
   } else if (Style.Language == FormatStyle::LK_JavaScript) {
     const FormatToken *NonComment = Right.getPreviousNonComment();
     if (NonComment &&
-        NonComment->isOneOf(tok::kw_return, tok::kw_continue, tok::kw_break,
-                            tok::kw_throw, Keywords.kw_interface,
-                            Keywords.kw_type, tok::kw_static, tok::kw_public,
-                            tok::kw_private, tok::kw_protected,
-                            Keywords.kw_abstract,
-                            Keywords.kw_get,
-                            Keywords.kw_set))
+        NonComment->isOneOf(
+            tok::kw_return, tok::kw_continue, tok::kw_break, tok::kw_throw,
+            Keywords.kw_interface, Keywords.kw_type, tok::kw_static,
+            tok::kw_public, tok::kw_private, tok::kw_protected,
+            Keywords.kw_abstract, Keywords.kw_get, Keywords.kw_set))
       return false; // Otherwise a semicolon is inserted.
     if (Left.is(TT_JsFatArrow) && Right.is(tok::l_brace))
       return false;