summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-01-08 08:14:58 +0000
committerDaniel Jasper <djasper@google.com>2016-01-08 08:14:58 +0000
commitd196abbba3ea1b6872539e628cc4fabd49e6b1ee (patch)
treec1d4fbc5ccc598eaa1c72a54a06ae03b4d649719 /clang/unittests/Format/FormatTestJS.cpp
parent086fec23ec438976a69e7232816e9c9d59d5d41c (diff)
downloadbcm5719-llvm-d196abbba3ea1b6872539e628cc4fabd49e6b1ee.tar.gz
bcm5719-llvm-d196abbba3ea1b6872539e628cc4fabd49e6b1ee.zip
clang-format: [JS] Add some Closure Compiler JSDoc tags to the default
Google configuration so that they aren't line-wrapped. llvm-svn: 257159
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index cbfa2a33205..4600d7feb3d 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -1030,5 +1030,15 @@ TEST_F(FormatTestJS, WrapAfterParen) {
" bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb) {\n}");
}
+TEST_F(FormatTestJS, JSDocAnnotations) {
+ EXPECT_EQ("/**\n"
+ " * @export {this.is.a.long.path.to.a.Type}\n"
+ " */",
+ format("/**\n"
+ " * @export {this.is.a.long.path.to.a.Type}\n"
+ " */",
+ getGoogleJSStyleWithColumns(20)));
+}
+
} // end namespace tooling
} // end namespace clang
OpenPOWER on IntegriCloud