From a3638d842c071ba83aaaec680b3ba4e980a4105b Mon Sep 17 00:00:00 2001 From: Martin Probst Date: Mon, 11 Apr 2016 09:17:57 +0000 Subject: [PATCH] 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 --- unittests/Format/FormatTestJS.cpp | 3 +++ 1 file changed, 3 insertions(+) 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 {}"); } -- 2.40.0