r265922 - clang-format: [JS] Test for parameter annotations.
Martin Probst via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 11 02:17:57 PDT 2016
Author: mprobst
Date: Mon Apr 11 04:17:57 2016
New Revision: 265922
URL: http://llvm.org/viewvc/llvm-project?rev=265922&view=rev
Log:
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
Modified:
cfe/trunk/unittests/Format/FormatTestJS.cpp
Modified: cfe/trunk/unittests/Format/FormatTestJS.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/unittests/Format/FormatTestJS.cpp?rev=265922&r1=265921&r2=265922&view=diff
==============================================================================
--- cfe/trunk/unittests/Format/FormatTestJS.cpp (original)
+++ cfe/trunk/unittests/Format/FormatTestJS.cpp Mon Apr 11 04:17:57 2016
@@ -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 {}");
}
More information about the cfe-commits
mailing list