commit | d9309774a63e18667fde8e31fab39fdb375d8c6f | [log] [tgz] |
---|---|---|
author | Daniel Jasper <djasper@google.com> | Mon Apr 13 15:03:30 2015 +0000 |
committer | Daniel Jasper <djasper@google.com> | Mon Apr 13 15:03:30 2015 +0000 |
tree | 4af73211df298a399cbafa1d29ada6fa9ddb4bf7 | |
parent | a74f5072e1733e41256a652737bc17798687a8a0 [diff] [blame] |
clang-format: [JS] Support index signature types. Patch by Martin Probst. llvm-svn: 234754
diff --git a/clang/unittests/Format/FormatTestJS.cpp b/clang/unittests/Format/FormatTestJS.cpp index eb587f2..3c8c14d 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp
@@ -670,5 +670,9 @@ "}"); } +TEST_F(FormatTestJS, IndexSignature) { + verifyFormat("var x: {[k: string]: v};"); +} + } // end namespace tooling } // end namespace clang