diff options
author | Daniel Jasper <djasper@google.com> | 2016-11-01 06:22:59 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2016-11-01 06:22:59 +0000 |
commit | 71e50af675c12197ebaf8d2782e8a9a59c428e29 (patch) | |
tree | 21556d1e3fc9504b08041945a46a160ab4d4f933 /clang/unittests/Format | |
parent | 4d67dd77a1a0109cce42ab4e7650051449075e1d (diff) | |
download | bcm5719-llvm-71e50af675c12197ebaf8d2782e8a9a59c428e29.tar.gz bcm5719-llvm-71e50af675c12197ebaf8d2782e8a9a59c428e29.zip |
clang-format: [JS] Fix formatting of generator functions.
Before:
var x = {
a: function*
() {
//
}
}
After:
var x = {
a: function*() {
//
}
}
llvm-svn: 285670
Diffstat (limited to 'clang/unittests/Format')
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index 71d09db7c07..846abaffebf 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -384,6 +384,11 @@ TEST_F(FormatTestJS, GeneratorFunctions) { " yield x;\n" " }\n" "}"); + verifyFormat("var x = {\n" + " a: function*() {\n" + " //\n" + " }\n" + "}\n"); } TEST_F(FormatTestJS, AsyncFunctions) { |