clang-format: [JS] Allow top-level conditionals again.
authorDaniel Jasper <djasper@google.com>
Tue, 12 Jul 2016 15:45:53 +0000 (15:45 +0000)
committerDaniel Jasper <djasper@google.com>
Tue, 12 Jul 2016 15:45:53 +0000 (15:45 +0000)
commit2f17d0a9ef9299a050e6b1c8e1fb8ae0be18d380
tree4894a21e3383209eeebc48f3a3d377536c850cbc
parent7b869db6dd2793d9d004b8d210f67d7c5290dcc1
clang-format: [JS] Allow top-level conditionals again.

I am not sure exactly which test breakage Martin was trying to fix in
r273694. For now, fix the behavior for top-level conditionals, which
(surprisingly) are actually used somewhat commonly.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@275183 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Format/TokenAnnotator.cpp
unittests/Format/FormatTestJS.cpp