summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2014-05-06 14:41:29 +0000
committerDaniel Jasper <djasper@google.com>2014-05-06 14:41:29 +0000
commit484033b188c8a5fc245e3f522133038b6a6cb635 (patch)
treee463c2770cf326e07f68cfc0ae18e32546924c55 /clang/unittests/Format/FormatTestJS.cpp
parent7a733480c8c7dd64c5436af8079651647308a92f (diff)
downloadbcm5719-llvm-484033b188c8a5fc245e3f522133038b6a6cb635.tar.gz
bcm5719-llvm-484033b188c8a5fc245e3f522133038b6a6cb635.zip
clang-format: [JS] Keep space after closure style comments.
Before: var x = /** @type {foo} */ (bar); After: var x = /** @type {foo} */(bar); llvm-svn: 208093
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 153b07535ee..ee49912522a 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -102,5 +102,9 @@ TEST_F(FormatTestJS, ReturnStatements) {
verifyFormat("function() { return [hello, world]; }");
}
+TEST_F(FormatTestJS, ClosureStyleComments) {
+ verifyFormat("var x = /** @type {foo} */ (bar);");
+}
+
} // end namespace tooling
} // end namespace clang
OpenPOWER on IntegriCloud