summaryrefslogtreecommitdiffstats
path: root/unittests
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2017-05-12 13:00:33 +0000
committerMartin Probst <martin@probst.io>2017-05-12 13:00:33 +0000
commit53df6f973c0c33b3520e9ee5cd9fde927c7f346f (patch)
tree40402042bd6ad7a8043dd6aa766a7fb746142880 /unittests
parent0647a5673f1407a0f3c4bf66c1398df8c7252e13 (diff)
clang-format: [JS] support non-null assertions after all identifiers.
Summary: Previously: x = namespace !; Now: x = namespace!; Reviewers: djasper Subscribers: klimek Differential Revision: https://reviews.llvm.org/D33113 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@302893 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/Format/FormatTestJS.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/Format/FormatTestJS.cpp b/unittests/Format/FormatTestJS.cpp
index 4a2da1abe0..8387152bca 100644
--- a/unittests/Format/FormatTestJS.cpp
+++ b/unittests/Format/FormatTestJS.cpp
@@ -1799,6 +1799,7 @@ TEST_F(FormatTestJS, NonNullAssertionOperator) {
" .foo()!\n"
" .foo()!;\n",
getGoogleJSStyleWithColumns(20));
+ verifyFormat("let x = namespace!;\n");
}
TEST_F(FormatTestJS, Conditional) {