diff options
| author | Martin Probst <martin@probst.io> | 2017-04-05 10:56:07 +0000 |
|---|---|---|
| committer | Martin Probst <martin@probst.io> | 2017-04-05 10:56:07 +0000 |
| commit | c4a3d081a913dc44279d9985910c0642f18bab7a (patch) | |
| tree | cbb2675a4bc1a46dda46f5eea9ac03cd0814756f /clang/unittests/Format/FormatTestJS.cpp | |
| parent | 5fbd93b21a8d22bce222833a1efad5b7bd82bdb1 (diff) | |
| download | bcm5719-llvm-c4a3d081a913dc44279d9985910c0642f18bab7a.tar.gz bcm5719-llvm-c4a3d081a913dc44279d9985910c0642f18bab7a.zip | |
clang-format: [JS] fix whitespace around "of" operator.
Summary:
Previously:
import {of } from 'x';
of (null);
Now:
import {of} from 'x';
of(null);
Reviewers: djasper
Subscribers: cfe-commits, klimek
Differential Revision: https://reviews.llvm.org/D31698
llvm-svn: 299533
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index f24ddc8fa2c..d8fa8e4b942 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -132,6 +132,8 @@ TEST_F(FormatTestJS, ReservedWords) { verifyFormat("x.interface = 1;"); verifyFormat("x.for = 1;"); verifyFormat("x.of() = 1;"); + verifyFormat("of(null);"); + verifyFormat("import {of} from 'x';"); verifyFormat("x.in() = 1;"); verifyFormat("x.let() = 1;"); verifyFormat("x.var() = 1;"); |

