diff options
| author | Daniel Jasper <djasper@google.com> | 2014-05-09 10:26:08 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-05-09 10:26:08 +0000 |
| commit | 8951908218ce58133794f241a7fbf4b2bd58de40 (patch) | |
| tree | 02cc3aca698e82b06db3cf6ccc36b88bad5b670a /clang/unittests/Format | |
| parent | eadcdbbe57997d16e4043993599c725457aa1ff6 (diff) | |
| download | bcm5719-llvm-8951908218ce58133794f241a7fbf4b2bd58de40.tar.gz bcm5719-llvm-8951908218ce58133794f241a7fbf4b2bd58de40.zip | |
clang-format: [JS] Fix spacing in dict literals.
Before:
someVariable = {'a':[{}]};
After:
someVariable = {'a': [{}]};
llvm-svn: 208403
Diffstat (limited to 'clang/unittests/Format')
| -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 73e050d6f4f..cc674164930 100644 --- a/clang/unittests/Format/FormatTestJS.cpp +++ b/clang/unittests/Format/FormatTestJS.cpp @@ -85,6 +85,7 @@ TEST_F(FormatTestJS, SpacesInContainerLiterals) { verifyFormat("var obj = {a: 1, b: 2, c: 3};", getChromiumStyle(FormatStyle::LK_JavaScript)); + verifyFormat("someVariable = {'a': [{}]};"); } TEST_F(FormatTestJS, SingleQuoteStrings) { |

