From: Martin Probst Date: Mon, 11 Apr 2016 09:17:57 +0000 (+0000) Subject: clang-format: [JS] Test for parameter annotations. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3638d842c071ba83aaaec680b3ba4e980a4105b;p=clang clang-format: [JS] Test for parameter annotations. Summary: Just to ensure no regressions, this already works fine. Reviewers: djasper Subscribers: cfe-commits, klimek Differential Revision: http://reviews.llvm.org/D18950 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265922 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/unittests/Format/FormatTestJS.cpp b/unittests/Format/FormatTestJS.cpp index 912682449e..5fa91e986a 100644 --- a/unittests/Format/FormatTestJS.cpp +++ b/unittests/Format/FormatTestJS.cpp @@ -936,6 +936,9 @@ TEST_F(FormatTestJS, MetadataAnnotations) { " return 'y';\n" " }\n" "}"); + verifyFormat("class C {\n" + " private x(@A x: string) {}\n" + "}"); verifyFormat("class X {}\n" "class Y {}"); }