diff options
author | Martin Probst <martin@probst.io> | 2017-11-24 17:05:35 +0000 |
---|---|---|
committer | Martin Probst <martin@probst.io> | 2017-11-24 17:05:35 +0000 |
commit | a5968aad3da0407ff7aaae3a47f665ea7daac709 (patch) | |
tree | 450e2a771f0ae9476d7ee3e306ab2154610559e0 /clang/unittests | |
parent | a2555114b676a97d8306c895fa12a2a366e9d739 (diff) | |
download | bcm5719-llvm-a5968aad3da0407ff7aaae3a47f665ea7daac709.tar.gz bcm5719-llvm-a5968aad3da0407ff7aaae3a47f665ea7daac709.zip |
clang-format: [JS] do not wrap before yield.
Summary: The same rules apply as for `return`.
Reviewers: djasper
Subscribers: klimek
Differential Revision: https://reviews.llvm.org/D40431
llvm-svn: 318958
Diffstat (limited to 'clang/unittests')
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index b8c81d14f4c..2665c8b428e 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -1123,6 +1123,7 @@ TEST_F(FormatTestJS, WrapRespectsAutomaticSemicolonInsertion) { // would change due to automatic semicolon insertion. // See http://www.ecma-international.org/ecma-262/5.1/#sec-7.9.1. verifyFormat("return aaaaa;", getGoogleJSStyleWithColumns(10)); + verifyFormat("yield aaaaa;", getGoogleJSStyleWithColumns(10)); verifyFormat("return /* hello! */ aaaaa;", getGoogleJSStyleWithColumns(10)); verifyFormat("continue aaaaa;", getGoogleJSStyleWithColumns(10)); verifyFormat("continue /* hello! */ aaaaa;", getGoogleJSStyleWithColumns(10)); |