From f55e41824729fd4675aeff75de96ce6be3e5867a Mon Sep 17 00:00:00 2001 From: Daniel Jasper Date: Mon, 11 Jan 2016 22:57:40 +0000 Subject: clang-format: [JS] Teach clang-format about "export interface". llvm-svn: 257406 --- clang/unittests/Format/FormatTestJS.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'clang/unittests/Format/FormatTestJS.cpp') 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) { -- cgit v1.2.3