diff options
| author | Daniel Jasper <djasper@google.com> | 2016-06-14 11:28:02 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2016-06-14 11:28:02 +0000 |
| commit | 6465008e0e36f5d592999783b569b5c0c43a680c (patch) | |
| tree | 8464481544b021caed282ce5e699d8b643ed7ca9 /clang/unittests/Format/FormatTestJS.cpp | |
| parent | 985c0c274b35caf902e27f24269b6636a1bd0b17 (diff) | |
| download | bcm5719-llvm-6465008e0e36f5d592999783b569b5c0c43a680c.tar.gz bcm5719-llvm-6465008e0e36f5d592999783b569b5c0c43a680c.zip | |
clang-format: [JS] Support annotated classes.
llvm-svn: 272654
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
| -rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index 75b53a57879..8410a0c9967 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -948,6 +948,11 @@ TEST_F(FormatTestJS, ClassDeclarations) { " },\n" " };\n" "}"); + verifyFormat("@Component({\n" + " moduleId: module.id,\n" + "})\n" + "class SessionListComponent implements OnDestroy, OnInit {\n" + "}"); } TEST_F(FormatTestJS, InterfaceDeclarations) { |

