diff options
author | Martin Probst <martin@probst.io> | 2016-04-11 09:17:57 +0000 |
---|---|---|
committer | Martin Probst <martin@probst.io> | 2016-04-11 09:17:57 +0000 |
commit | 716a533a7f47c63cc2f30ce5bdf70958d81dff46 (patch) | |
tree | 938bba74afa95da8bac3844665cbe7ab1c82fa89 /clang/unittests/Format/FormatTestJS.cpp | |
parent | 86bc97b79e0aa8a3dfbc16f5a91619e4ef615c6b (diff) | |
download | bcm5719-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.cpp | 3 |
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 {}"); } |