From d196abbba3ea1b6872539e628cc4fabd49e6b1ee Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Fri, 8 Jan 2016 08:14:58 +0000 Subject: clang-format: [JS] Add some Closure Compiler JSDoc tags to the default Google configuration so that they aren't line-wrapped. llvm-svn: 257159 --- clang/unittests/Format/FormatTestJS.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'clang/unittests/Format/FormatTestJS.cpp') 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 -- cgit v1.2.3