summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorMartin Probst <martin@probst.io>2016-04-11 09:17:57 +0000
committerMartin Probst <martin@probst.io>2016-04-11 09:17:57 +0000
commit716a533a7f47c63cc2f30ce5bdf70958d81dff46 (patch)
tree938bba74afa95da8bac3844665cbe7ab1c82fa89 /clang/unittests/Format/FormatTestJS.cpp
parent86bc97b79e0aa8a3dfbc16f5a91619e4ef615c6b (diff)
downloadbcm5719-llvm-716a533a7f47c63cc2f30ce5bdf70958d81dff46.tar.gz
bcm5719-llvm-716a533a7f47c63cc2f30ce5bdf70958d81dff46.zip
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
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 912682449e3..5fa91e986a8 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/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 {}");
}
OpenPOWER on IntegriCloud