[PATCH] D18950: clang-format: [JS] Test for parameter annotations.

Martin Probst via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 11 00:58:44 PDT 2016


mprobst created this revision.
mprobst added a reviewer: djasper.
mprobst added a subscriber: cfe-commits.
Herald added a subscriber: klimek.

Just to ensure no regressions, this already works fine.

http://reviews.llvm.org/D18950

Files:
  unittests/Format/FormatTestJS.cpp

Index: unittests/Format/FormatTestJS.cpp
===================================================================
--- unittests/Format/FormatTestJS.cpp
+++ unittests/Format/FormatTestJS.cpp
@@ -936,6 +936,9 @@
                "    return 'y';\n"
                "  }\n"
                "}");
+  verifyFormat("class C {\n"
+               "  private x(@A x: string) {}\n"
+               "}");
   verifyFormat("class X {}\n"
                "class Y {}");
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D18950.53201.patch
Type: text/x-patch
Size: 453 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160411/99b88563/attachment.bin>


More information about the cfe-commits mailing list