summaryrefslogtreecommitdiffstats
path: root/clang/unittests/Format/FormatTestJS.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2016-01-11 22:57:40 +0000
committerDaniel Jasper <djasper@google.com>2016-01-11 22:57:40 +0000
commitf55e41824729fd4675aeff75de96ce6be3e5867a (patch)
treed965d8b0e8e1101d8288107d53af02a26353d0ac /clang/unittests/Format/FormatTestJS.cpp
parentbaa07490bc38dc61740fddc96f831d57bc290bb6 (diff)
downloadbcm5719-llvm-f55e41824729fd4675aeff75de96ce6be3e5867a.tar.gz
bcm5719-llvm-f55e41824729fd4675aeff75de96ce6be3e5867a.zip
clang-format: [JS] Teach clang-format about "export interface".
llvm-svn: 257406
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r--clang/unittests/Format/FormatTestJS.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp
index 9477580016a..5e9a1b533ca 100644
--- a/clang/unittests/Format/FormatTestJS.cpp
+++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -900,6 +900,10 @@ TEST_F(FormatTestJS, Modules) {
"];");
verifyFormat("export default [];");
verifyFormat("export default () => {};");
+ verifyFormat("export interface Foo { foo: number; }\n"
+ "export class Bar {\n"
+ " blah(): string { return this.blah; };\n"
+ "}");
}
TEST_F(FormatTestJS, TemplateStrings) {
OpenPOWER on IntegriCloud