forked from OSchip/llvm-project
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 llvm-svn: 265922
This commit is contained in:
parent
86bc97b79e
commit
716a533a7f
|
@ -936,6 +936,9 @@ TEST_F(FormatTestJS, MetadataAnnotations) {
|
||||||
" return 'y';\n"
|
" return 'y';\n"
|
||||||
" }\n"
|
" }\n"
|
||||||
"}");
|
"}");
|
||||||
|
verifyFormat("class C {\n"
|
||||||
|
" private x(@A x: string) {}\n"
|
||||||
|
"}");
|
||||||
verifyFormat("class X {}\n"
|
verifyFormat("class X {}\n"
|
||||||
"class Y {}");
|
"class Y {}");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue