summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-01-12 06:24:38 +0000
committerDaniel Jasper <djasper@google.com>2016-01-12 06:24:38 +0000
commit8620d4c55b7db88f534e4369a62782a5070d77e9 (patch)
tree771b9b27f2706e8e92929e596b9eeb2ab7a8812d /clang/unittests/Format/FormatTestJS.cpp
parentdb147eb5acd92bc2dfdf7c157c1ce501fb24d7d8 (diff)
downloadbcm5719-llvm-8620d4c55b7db88f534e4369a62782a5070d77e9.tar.gz
bcm5719-llvm-8620d4c55b7db88f534e4369a62782a5070d77e9.zip
clang-format: [JS] Support exporting abstract classes.
Before: export abstract class X {y: number;} (and all sorts of other havoc in more complicated cases). After: export abstract class X { y: number; } llvm-svn: 257451
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 5e9a1b533ca..992331cecb4 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -878,6 +878,7 @@ TEST_F(FormatTestJS, Modules) {
" y: string;\n"
"}");
verifyFormat("export class X { y: number; }");
+ verifyFormat("export abstract class X { y: number; }");
verifyFormat("export default class X { y: number }");
verifyFormat("export default function() {\n return 1;\n}");
verifyFormat("export var x = 12;");
OpenPOWER on IntegriCloud