diff options
author | Daniel Jasper <djasper@google.com> | 2015-06-12 04:56:34 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-06-12 04:56:34 +0000 |
commit | 259188b1b58e9441d0aff11537a589b61ce611ed (patch) | |
tree | 1f07d9ed9e4427e5096e195b1088860f426a400a /clang/unittests/Format/FormatTestJS.cpp | |
parent | 910807d4b9ee588e51e34ccb7804758123a78423 (diff) | |
download | bcm5719-llvm-259188b1b58e9441d0aff11537a589b61ce611ed.tar.gz bcm5719-llvm-259188b1b58e9441d0aff11537a589b61ce611ed.zip |
clang-format: [JS] Fix regression caused by r239592.
Without it, it would do:
interface I {
x: string;
} var y;
llvm-svn: 239593
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index e01637bfad4..0f9f38240a3 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -665,7 +665,8 @@ TEST_F(FormatTestJS, ClassDeclarations) { TEST_F(FormatTestJS, InterfaceDeclarations) { verifyFormat("interface I {\n" " x: string;\n" - "}"); + "}\n" + "var y;"); } TEST_F(FormatTestJS, MetadataAnnotations) { |