]> granicus.if.org Git - clang/commitdiff
clang-format: [JS] Test for parameter annotations.
authorMartin Probst <martin@probst.io>
Mon, 11 Apr 2016 09:17:57 +0000 (09:17 +0000)
committerMartin Probst <martin@probst.io>
Mon, 11 Apr 2016 09:17:57 +0000 (09:17 +0000)
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

index 912682449e39f0c9cf1730b9e93e6738d355d185..5fa91e986a898ee51fb4b65281ef1c5902ce1bfa 100644 (file)
@@ -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 {}");
 }