diff options
| author | Daniel Jasper <djasper@google.com> | 2015-06-12 05:08:18 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2015-06-12 05:08:18 +0000 |
| commit | 216c9cdb1d159e22588b18fa5156218a5e051ba2 (patch) | |
| tree | 5414c21b868b5cfb8049cd4fb2aeacdcaf29cd42 /clang/unittests | |
| parent | 4c0bf7034c7383acb10e0d162feeb2ae58d14d5b (diff) | |
| download | bcm5719-llvm-216c9cdb1d159e22588b18fa5156218a5e051ba2.tar.gz bcm5719-llvm-216c9cdb1d159e22588b18fa5156218a5e051ba2.zip | |
clang-format: [JS] Support "export enum" declarations.
llvm-svn: 239595
Diffstat (limited to 'clang/unittests')
| -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 888d73d48ee..31386b448ac 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -747,6 +747,11 @@ TEST_F(FormatTestJS, Modules) { " a: 1,\n" " b: 2\n" "};"); + verifyFormat("export enum Foo {\n" + " BAR,\n" + " // adsdasd\n" + " BAZ\n" + "}"); } TEST_F(FormatTestJS, TemplateStrings) { |

