diff options
author | Daniel Jasper <djasper@google.com> | 2015-12-29 08:54:23 +0000 |
---|---|---|
committer | Daniel Jasper <djasper@google.com> | 2015-12-29 08:54:23 +0000 |
commit | 6f5a1933b788d7eb6653deed871fd9ea0d1eae6d (patch) | |
tree | 57cc8d7c2608b080c5d483f13933939d88166f2e /clang/unittests/Format/FormatTestJS.cpp | |
parent | afb72f38f8bee35c64801667201ee0d5882c4834 (diff) | |
download | bcm5719-llvm-6f5a1933b788d7eb6653deed871fd9ea0d1eae6d.tar.gz bcm5719-llvm-6f5a1933b788d7eb6653deed871fd9ea0d1eae6d.zip |
clang-format: [JS/TypeScript] Support "enum" as property name.
Before:
enum: string
[];
After:
enum: string[];
llvm-svn: 256546
Diffstat (limited to 'clang/unittests/Format/FormatTestJS.cpp')
-rw-r--r-- | clang/unittests/Format/FormatTestJS.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index 9bfd587412d..56b493dae1c 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -762,6 +762,7 @@ TEST_F(FormatTestJS, ClassDeclarations) { TEST_F(FormatTestJS, InterfaceDeclarations) { verifyFormat("interface I {\n" " x: string;\n" + " enum: string[];\n" "}\n" "var y;"); // Ensure that state is reset after parsing the interface. |